Sunday, January 28, 2018

14.04 - How to add a program that is not installed via APT/dpkg to launcher?




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.



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.


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...