Nagstamon icon indicating copy to clipboard operation
Nagstamon copied to clipboard

Conform to XDG Base Directory Specification

Open jplitza opened this issue 7 years ago • 2 comments

It would be nice if Nagstamon would conform to the XDG Base Directory Specification. Basically, this would be accomplished by not putting its configuration in $HOME/.nagstamon, but instead in $XDG_CONFIG_HOME/nagstamon, falling back to $HOME/.config/nagstamon if $XDG_CONFIG_HOME is unset, and putting its pidfile in $XDG_RUNTIME_DIR/ (fallback is unclear here, maybe /tmp?). The latter would also have the benefit that on a system with shared NFS homes, launching multiple instances on different machines would be possible.

(NB: To strictly conform to the specification, Nagstamon would have to search for its configuration in a couple more directories)

jplitza avatar Jan 18 '17 15:01 jplitza

Indeed, nice advice... I'm fixing something else at the moment but I'll look at it soon. :)

mprenditore avatar Jan 18 '17 16:01 mprenditore

Interesting... but only for Linux systems I guess, Windows and MacOS should not use this, even if there might be other defaults making more sense than $HOME/.nagstamon. As far as I remember there are even some configuration related classes in Qt5. Would be cool otherwise for a one-day-far-away coming CLI version not to have it too desktop-centric.

HenriWahl avatar Jan 18 '17 16:01 HenriWahl