workrave
workrave copied to clipboard
Follow XDG basedirectory spec
Currently workrave saves all its configuration and data into ~/.workrave.
- This behavior should be documented - at least I couldn't find any mention of that in the docs.
- It would be nice if it could be changed to adhere to the xdg spec, meaning that config files (seems to be only state) would go into
${XDG_CONFIG_HOME:-~/.config}/workravewhile everything else goes into${XDG_DATA_HOME:-~/.local/share}/workrave. Some might even go into/tmp, but I don't definitely know the purpose of files such asidlelog, so I can't make an informed decision here.
Sound like a good proposal. I will change Workrave to prefer XDG. Though I will probably not migrate the ~/.workrave directory. If it exists, it will be used. If it doesn't exist, a new XDG compliant directory will be created/used.
@rcaelers I'm not sure if you know about this, but the XDG Base Directory Specification now differentiates between data and state (defaulting to ~/.local/share and ~/.local/state respectively). It's roughly equivalent to the distinction between /usr/share and /var/lib.