More > JRiver Media Center 21 for Linux

[Request] Use the existing image and video folders in HOME directory

<< < (2/2)

bob:
Seems like it would be enough to simply read the XDG environment variables and use those unless they are undefined.

mwillems:

--- Quote from: bob on February 12, 2016, 10:06:02 am ---Seems like it would be enough to simply read the XDG environment variables and use those unless they are undefined.


--- End quote ---

If by "read the XDG environment variables" you mean calling xdg-user-dir, that would work, but just looking for conventional shell environment variables likely would not.  My default "env" doesn't include all the XDG directories on every DE so trying to pluck them out of the default shell environment would not work for many cases. However, xdg-user-dir always returns the correct answers when called.  I just wanted to be sure, because the shell environment does sometimes get the XDG directories exported to it, but not reliably.

Navigation

[0] Message Index

[*] Previous page

Go to full version