We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would like to write an app which can be run both
CacheDirectory=<progname>
In the second case, systemd sets the CACHE_DIRECTORY env var, and directories-rs could recognize that.
This also applies for other directories than cache: from man systemd.exec:
Table 2. Automatic directory creation and environment variables ┌────────────────────────┬────────────────┬───────────────────────┬──────────────────────────┐ │Directory │ Below path for │ Below path for user │ Environment │ │ │ system units │ units │ variable set │ ├────────────────────────┼────────────────┼───────────────────────┼──────────────────────────┤ │RuntimeDirectory= │ /run/ │ $XDG_RUNTIME_DIR │ $RUNTIME_DIRECTORY │ ├────────────────────────┼────────────────┼───────────────────────┼──────────────────────────┤ │StateDirectory= │ /var/lib/ │ $XDG_CONFIG_HOME │ $STATE_DIRECTORY │ ├────────────────────────┼────────────────┼───────────────────────┼──────────────────────────┤ │CacheDirectory= │ /var/cache/ │ $XDG_CACHE_HOME │ $CACHE_DIRECTORY │ ├────────────────────────┼────────────────┼───────────────────────┼──────────────────────────┤ │LogsDirectory= │ /var/log/ │ $XDG_CONFIG_HOME/log/ │ $LOGS_DIRECTORY │ ├────────────────────────┼────────────────┼───────────────────────┼──────────────────────────┤ │ConfigurationDirectory= │ /etc/ │ $XDG_CONFIG_HOME │ $CONFIGURATION_DIRECTORY │ └────────────────────────┴────────────────┴───────────────────────┴──────────────────────────┘
The text was updated successfully, but these errors were encountered:
I've created the systemd-directories crate that does just this.
Sorry, something went wrong.
These are all related: #87 #82 #58
No branches or pull requests
I would like to write an app which can be run both
CacheDirectory=<progname>
.In the second case, systemd sets the CACHE_DIRECTORY env var, and directories-rs could recognize that.
This also applies for other directories than cache: from man systemd.exec:
The text was updated successfully, but these errors were encountered: