Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improv(cosmic-config): remove hardcoded paths
This commit changes the hardcoded /usr/share paths in cosmic-config to become performed via XDG lookups using the `xdg` crate. This allows the installed files to be discovered on non-FHS Linux, e.g. NixOS. Hardcoded /var/lib/ is removed entirely because 1. nothing installs to it yet (only user of new_state is cosmic_bg currently and it does not install to /var/lib) 2. it's intended for system states, not template for user state. 3. it's not part of XDG spec. On Windows the known folder crate is used. Signed-off-by: Gary Guo <gary@garyguo.net>
- Loading branch information
Showing
2 changed files
with
59 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters