16

I installed Android Development Tools (you just download it and run the executable file inside a folder). I want to pin the ADT to the launcher, but I don't know how to do that. I tried to drag the executable file, but it didn't work. I also tried to click "Lock to the launcher"(on the right click when it's running), but it also didn't work. Any ideas?

Edit1: If I create shortcut like in the article you claim answers my question. Can I install normal eclipse and set it in a way it's the same like ADT downloaded from android.com? I tried that as well, but some features are missing.

Edit2: When I try to run it, what I get is an error message saying There was an error launching the application

Edit3: This is what I typed

Desktop Entry]
Name=Eclipse
Type=Application Exec='/home/dusan/adt-bundle-linux-x86_64-20140321/eclipse/eclipse'
Terminal=false
Icon='/home/dusan/adt-bundle-linux-x86_64-20140321/eclipse/icon.xpm'
Comment=Eclipse
NoDisplay=false
Categories=Development;IDE
Name[en]=Eclipse.desktop

Edit4: Eclipse launched successfuly.

Edit5: I also tried without apostrophes, but I get the same error message as in Edit2.

6
  • See askubuntu.com/questions/13758/… - you need to create a .desktop file for it.
    – Takkat
    Commented Apr 19, 2014 at 18:54
  • Takkat, please remove the duplicate tag, because this IS NOT a duplicate! Commented Apr 19, 2014 at 20:31
  • What's a typo?. Commented Apr 19, 2014 at 21:22
  • 1
    The message in your screenshot from your 2nd edit indicates an error in the .desktop file. Spot the error, remove it, and you will be able to run Eclipse from a .dektop file (which then can be dragged onto the laucher).
    – Takkat
    Commented Apr 19, 2014 at 21:39
  • 2
    Your terminal screenshot shows at least two errors... 1. line missing [, 3. line missing new line after "Application". Double check the paths are correct. Save the .desktop file in ~/.local/share/applications and make it permission "executable".
    – Takkat
    Commented Apr 20, 2014 at 6:57

1 Answer 1

37

You should create a Desktop Entry first: Go in terminal and write:

sudo nano /usr/share/applications/adt.desktop

and write inside of editor:

[Desktop Entry]
Name=ADT
Type=Application
Exec=/home/dusan/adt-bundle-linux-x86_64-20140321/eclipse/eclipse 
Terminal=false
Icon=/home/dusan/adt-bundle-linux-x86_64-20140321/eclipse/eclipse.xpm
Comment=Any comment
NoDisplay=false
Categories=Development;IDE
Name[en]=adt.desktop

Replace Icon and Exec with the path to Eclipse. Then press Ctrl+X followed by Y, then Enter.

Now you have desktop entry in Dashboard. Drag it to your launcher. May need to logout.

6
  • It's not working. Eclipse won't start. Commented Apr 19, 2014 at 20:08
  • be sure you put the paths to your eclipse executable correctly. Commented Apr 19, 2014 at 20:11
  • I did. The same thing happens like I ran eclipse and clicked "Lock to Launcher". Commented Apr 19, 2014 at 20:16
  • put a break behind Type=Application; Exec should be in newline Commented Apr 19, 2014 at 20:51
  • Worked for me!! Commented May 15, 2015 at 9:13

Not the answer you're looking for? Browse other questions tagged .