pointing to files in home within Exec and Icon

Hongli Lai hongli at plan99.net
Sat Jul 23 14:47:59 EEST 2005


Sven wrote:
> Hi list,
> 
> i created this menu-entry:
> /home/sven-tek/.local/share/applications/sanduhr.desktop
> 
> [Desktop Entry]
> Name=Sanduhr
> Comment=Reminder Program
> Exec=/home/sven-tek/./bin/sanduhr
> Icon=/home/sven-tek/.local/share/pixmaps/sanduhr/logo.png
> Type=Application
> Categories=Application;Utility;
> 
> i expected something like this to work, but is does not:
> Exec=~/./bin/sanduhr
> Icon=~/.local/share/pixmaps/sanduhr/logo.png
> 
> or/and this:
> Exec=$HOME/./bin/sanduhr
> Icon=$HOME/.local/share/pixmaps/sanduhr/logo.png
> 
> or/and this:
> Exec=$XDG_CONFIG_HOME/./bin/sanduhr
> Icon=$XDG_CONFIG_HOME/.local/share/pixmaps/sanduhr/logo.png
> 
> Have i done something wrong, or is it something thats not in the
> standard?
> 
> ...it would be usefull because its more general.
> 
> regards, Sven Jaborek

I don't think there's a way to make the Icon field work, but for the 
Exec field, you can write something like this:
Exec=sh -c ~/.bin/sanduhr



More information about the xdg mailing list