Bug 55 - abcde does not comply with XDG Base DIrectory specs
Summary: abcde does not comply with XDG Base DIrectory specs
Status: CONFIRMED
Alias: None
Product: abcde
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All All
: Normal minor
Assignee: Steve McIntyre
URL:
Depends on:
Blocks:
 
Reported: 2017-02-05 09:52 GMT by ce
Modified: 2017-03-08 10:23 GMT (History)
2 users (show)

See Also:


Attachments
Patch for abcde 2.8.1, implements XDG base dirs (899 bytes, patch)
2017-02-05 09:52 GMT, ce
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ce 2017-02-05 09:52:19 GMT
Created attachment 46 [details]
Patch for abcde 2.8.1, implements XDG base dirs

abcde uses $HOME as both configuration and cache directory, however, as per Freedesktop Foundation specs it should be using $XDG_CONFIG_HOME and $XDG_CACHE_HOME, and default to $HOME/.config and $HOME/.cache if those variables are unset [1].

I've attached a patch for this based of 2.8.1. It uses $XDG_CONFIG_HOME/abcde/abcde.conf, so one could store multiple configuration files, in case that ever becomes necessary.

[1] https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html