relative paths in Exec= in .desktop and .service files

Simon McVittie simon.mcvittie at collabora.co.uk
Mon Sep 8 05:47:44 PDT 2014


On 08/09/14 13:23, Simon McVittie wrote:
> 3) contains a path separator but is relative
...
> Reasonable possibilities include:
[...]
> * it's relative to the getcwd() of the process that is interpreting
>   the file, i.e. normally / or $HOME

According to
<https://unix.stackexchange.com/questions/144422/getting-the-current-path-in-desktop-exec-command>,
this is what happens in KDE.

> * it's relative to the directory containing the file itself,
>   i.e. normally /usr/share/applications

According to
<https://unix.stackexchange.com/questions/144422/getting-the-current-path-in-desktop-exec-command>,
this is what happens in Cinnamon and probably GNOME.

    S



More information about the xdg mailing list