pub fn write_xdg_config(new_key: &str) -> Result<PathBuf>Expand description
Writes (or updates) the XDG configuration file with the provided key.
Creates parent directories if necessary.
On Unix systems, sets 600 permissions via apply_600_permissions.