Ubuntu – Program won’t start from launcher

So I had that problem after I did some clean up on my desktop (too many files!)
usually I just add the program to the launcher by right click>lock to Launcher
but someone the program that I’ve already have does not load when I click, and unlock then locking it back does not seem to work

the program was Cooja but it should be the same for any program

so a work around is by opening the terminal (ctrl + t)
adila@adila:cd ~/.local$ cd share/applications/
adila@adila:~/.local/share/applications$ ls
mimeapps.list se-sics-cooja-gui.desktop
adila@adila:~/.local/share/applications$ gedit se-sics-cooja-gui.desktop

that will open the file
[Desktop Entry]
Name=Cooja: The Contiki Network Simulator
Exec=/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -Xmx512m -Duser.language=en -classpath /home/adila/Desktop/contiki-2.7/tools/cooja/build:/home/adila/Desktop/contiki-2.7/tools/cooja/lib/jdom.jar:/home/adila/Desktop/contiki-2.7/tools/cooja/lib/log4j.jar:/home/adila/Desktop/contiki-2.7/tools/cooja/lib/jsyntaxpane.jar se.sics.cooja.GUI

the important part is where the file is at
I accidentally misplaced the file

so you can either change the classpath or delete the whole thing and start over by unlock, then locking it back on the launcher (run it as usual from the terminal or how ever you do it)

a good explanation of the local and global directory is at http://askubuntu.com/questions/418295/chrome-wont-start-from-the-launcher


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s