How to specify 'root' in path in text file

Posted by DeanGrobler on Ask Ubuntu See other posts from Ask Ubuntu or by DeanGrobler
Published on 2012-11-01T09:07:04Z Indexed on 2012/11/01 11:15 UTC
Read the original article Hit count: 249

Filed under:
|
|
|
|

I'm following this tutorial located here on how to create a launcher for eclipse in unity. Everything is going pretty well so far, I've managed to successfully create the launcher but when I click on it, my system complains that the path to the exec is wrong.

My exec for eclipse is located here:

~/opt/eclipse/eclipse

And if you look at the tutorial you have to create a file and set it's contents like so:

[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=eclipse
Exec=./opt/eclipse/eclipse
Terminal=true
Categories=Development;IDE;Java;

In my case I have to provide the full location for the exec and there are a number of things that I tried that didn't work I set 'exec' to 'Exec=~/opt/eclipse/eclipse' , 'Exec=/opt/eclipse/eclipse' and 'Exec=root/opt/eclipse/eclipse' and none of these worked..

What should I set it to in order to fix the path so that my luancher works?

Update------------------

I tried to list those 2 directories and what i get is this:

enter image description here

© Ask Ubuntu or respective owner

Related posts about unity

Related posts about 12.10