Re: Relative paths in .desktop, .service files' Exec= lines
Allison Lortie <[email protected]>
| Newsgroups | gmane.linux.xdg.devel,gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <1466704794.3123444.646627121.660AE1DF@webmail.messagingengine.com> |
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 _______________________________________________ xdg mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/xdg