Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add site-level state (and/or cache) dir #150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sarnold
Copy link

@sarnold sarnold commented Jun 18, 2020

  • use '/var/lib/AppName' dir on Linux
  • use site_data with appended 'State' dir on non-Linux platforms

Hi, and thanks for the useful package. I just started tweaking a python daemon for systemd and it turns out this would be even more useful if it had support for site-level 'state' and 'cache' directories. Since XDG doesn't really define either one, I just made a simple version for state data (cache could be the same, at least without extending the XDG spec a little more).

* use '/var/lib/AppName' dir on Linux
* use site_data with appended 'State' dir on non-Linux platforms

Signed-off-by: Stephen Arnold <[email protected]>
sarnold added a commit to freepn/fpnd that referenced this pull request Jun 20, 2020
Systemd and openrc updates for (missing) site_state_dir on Linux (see PR #150 ActiveState/appdirs#150)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant