fdm icon indicating copy to clipboard operation
fdm copied to clipboard

Implement XDG base directory compliance

Open mikejzx opened this issue 1 year ago • 0 comments

Relevant issue: https://github.com/nicm/fdm/issues/96

This patch implements support for the XDG base directory specification. This will not affect existing user configurations, but instead extends fdm to allow the user to specify an fdm.conf file in their $XDG_CONFIG_HOME directory (often ~/.config). fdm now also will store it's fdm.lock lock file in $XDG_RUNTIME_DIR (e.g. /tmp/XXXX.runtime-dir.XXX) if it is set, and if not, will use the old behaviour of storing the lock file in the home directory.

The patch does not modify the behaviour of other "temporary files"--they are still stored in /tmp or under $TMPDIR like before.

mikejzx avatar Dec 01 '23 23:12 mikejzx