Relative paths in .desktop, .service files' Exec= lines

Allison Lortie desrt at desrt.ca
Thu Jun 23 17:59:54 UTC 2016


hi,

On Thu, Jun 23, 2016, at 13:54, Simon McVittie wrote:
> OK. So are you thinking of something like this pseudocode?

Almost.  See below.


>         if lstat(path) says it's a symlink:

s/if/while/  (plus a recursion depth check).

ie: if the file that we get back is also a symlink, keep going, but
never check directories.

Implementation quibble: just readlink() and if that fails, it's
obviously not.

Allison


More information about the xdg mailing list