! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
[bug?] Desktop launcher confused by "$HOME" parameter
Status:
RESOLVED: INVALID
Product:
Xfdesktop
Component:
General

Comments

Description jupiter.hce 2012-12-19 06:20:52 CET
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".
Comment 1 Julien [nodiscc] editbugs 2014-11-28 16:40:32 CET
'$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
Comment 2 Thaddaeus Tintenfisch editbugs 2015-03-19 13:53:39 CET
Closing.

Bug #9661

Reported by:
jupiter.hce
Reported on: 2012-12-19
Last modified on: 2015-03-19

People

Assignee:
Eric Koegel
CC List:
4 users

Version

Attachments

Additional information