workrave icon indicating copy to clipboard operation
workrave copied to clipboard

Follow XDG basedirectory spec

Open xeruf opened this issue 5 years ago • 2 comments

Currently workrave saves all its configuration and data into ~/.workrave.

  1. This behavior should be documented - at least I couldn't find any mention of that in the docs.
  2. 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}/workrave while 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 as idlelog, so I can't make an informed decision here.

xeruf avatar May 06 '20 23:05 xeruf

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 avatar May 07 '20 16:05 rcaelers

@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.

mskiptr avatar Apr 20 '22 11:04 mskiptr