libcosmic/cosmic-config
Gary Guo 3aef16bf9e 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>
2024-01-24 19:08:19 +01:00
..
src improv(cosmic-config): remove hardcoded paths 2024-01-24 19:08:19 +01:00
Cargo.toml improv(cosmic-config): remove hardcoded paths 2024-01-24 19:08:19 +01:00