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> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||