I am totally new to Ubuntu/Linux and I want to create a link on a desktop (is this called an application launcher?).
I created a .desktop file placed on the Desktop with this content but it doesn't start the application:
[Desktop Entry] Type=Application Comment=GIT Version Control System 6.0.3 Icon=/usr/local/bin/develop/versioncontrol/smartgithg-6_0_3/bin/smartgithg-64.png Exec=/usr/local/bin/develop/versioncontrol/smartgithg-6_0_3/bin/smartgithg.sh Terminal=false Categories=Development;IDE;Java; Name[en_US]=SmartGIT 603
-rwxrwxr-x 1 diulrich diulrich 321 Jun 18 18:35 SmartGIT 603.desktop*
I am using Ubuntu 12.04
Also, I have checked 'Allow executing file as program' in the Permissions tab when right-clicking the desktop symbol.
I tried to set required environment variable SMARTGITHG_JAVA_HOME in .bashrc, .profile and in /etc/environment without success.
Modifying the EXEC property in the .desktop file this way:
Exec=env SMARTGITHG_JAVA_HOME=/usr/lib/jvm/jdk1.7.0_40 /usr/local/bin/develop/versioncontrol/smartgithg-6_0_3/bin/smartgithg.sh
I am able to start the application by clicking the desktop symbol.
I wonder why this happens? Is GNOME (GNOME is responsible for running .desktop files, isn't it?) using another shell so that it does not execute .bashrc/.profile an subsequently SMARTGITHG_JAVA_HOME is not set?