Hi, I have an application on menu which is running fine. But when I drag the application icon from menu to desktop, the desktop launcher could not run to complain "does not know $HOME".
'$HOME' is meant to be used in shell scripts, AFAIK no freedesktop/gtk-related apps make use of '$' variables. I suggest you omit $HOME completely for your launcher and use relaive paths (~/ is the default working directory for .desktop launchers) Or you may use a wrapper script and launcher for this. For example: ↳ cat /usr/share/applications/xdg-file-manager.desktop [Desktop Entry] Type=Application Icon=folder-home TryExec=xdg-file-manager Exec=xdg-file-manager Name=File Manager Name[fr]=Gestionnaire de Fichiers Comment=Browse files and directories on this computer and on the network Comment[fr]=Parcourir les fichiers et répertoires sur cet ordinateur et sur le réseau Categories=System;Utility;Core;GTK;FileTools;FileManager; ↳ cat /usr/bin/xdg-file-manager #!/bin/sh xdg-open "$HOME" If this doesn't work for you, please provide a copy of your .desktop file because it's hard to tell what you're trying to achieve. Otherwise I'll certainly close this as invalid in one month (2014-12-28) Thanks
Closing.