libcosmic/cosmic-config/src
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
..
calloop.rs config: Add calloop feature to provide a calloop source (#102) 2023-05-09 08:45:21 -07:00
dbus.rs refactor: config improvements 2024-01-18 20:19:32 -07:00
lib.rs improv(cosmic-config): remove hardcoded paths 2024-01-24 19:08:19 +01:00
settings_daemon.rs chore: update to 0.12 2023-12-04 17:53:24 -05:00
subscription.rs refactor: config improvements 2024-01-18 20:19:32 -07:00