oak icon indicating copy to clipboard operation
oak copied to clipboard

Use XDG for history file

Open luka-hash opened this issue 1 year ago • 0 comments

Add an option to first check for default cache directory (usually the one set with $XDG_CACHE_HOME). If it fails, it uses the file in users home directory.

More about XDG Base Directory Specification:

  • https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
  • https://xdgbasedirectoryspecification.com/

EDIT: Another option would be to check for $OAK_HOME variable, and use that.

luka-hash avatar Sep 03 '23 14:09 luka-hash