How to specify 'root' in path in text file
- by DeanGrobler
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: