GNOME ignores the Path setting in .desktop files; it doesn't set current work directory correctly before executing the application. Reproducible: Always Steps to Reproduce: To reproduce, do this: --- 8< --- $ cat <<X >/tmp/pathtest #!/bin/sh pwd read X $ chmod +x /tmp/pathtest $ mkdir -p ~/.local/share/applications $ cat <<X >~/.local/share/applications [Desktop Entry] Type=Application Version=1.0 Encoding=UTF-8 Name=Path test Path=/tmp Exec=/tmp/pathtest Terminal=true Categories=Application X --- 8< --- Then execute the .desktop file (either via menu or directly). Actual Results: The current work directory is set to my home directory when running the desktop file. Expected Results: The current work directory should have been set to whatever Path is set to in the desktop file before running its associated program.
Wops, forgot to mention Gnome version. Gnome version is 2.10 (light).
This bug has been fixed upstream with >=gnome-desktop-2.14. See http://bugzilla.gnome.org/show_bug.cgi?id=320990. Also note that setting Terminal=true in a .desktop file will make the terminal program run in the specified path, but the application itself is run in whatever directory the terminal sets (usually $HOME).