Implement get_config_dir() and get_state_dir() helper functions that detect Flatpak sandboxing via FLATPAK_ID and use HOST_XDG_CONFIG_HOME/HOST_XDG_STATE_HOME environment variables or fallback to HOME-based paths. This allows libcosmic apps running in Flatpak sandboxes to properly read system-wide COSMIC configuration (themes, corner radii, etc.) from the host. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||