dconf: Fix Gio module variable breakage (#7146)

In some setups, this would cause missing Gio modules that cause e.g.
Nautilus to not be able to view the XDG trash, and potentially other
issues.

Fixes: ec8205c3 ("dconf: set env var")
Fixes: #7143
This commit is contained in:
Thomas Mühlbacher 2025-05-30 14:57:34 +02:00 committed by GitHub
parent 4e9efaa68b
commit d3a3aee558
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -80,7 +80,9 @@ in
(lib.mkIf cfg.enable {
home.packages = [ pkgs.dconf ];
dbus.packages = [ pkgs.dconf ];
home.sessionVariables.GIO_EXTRA_MODULES = "${pkgs.dconf.lib}/lib/gio/modules";
home.sessionVariablesExtra = ''
export GIO_EXTRA_MODULES="${pkgs.dconf.lib}/lib/gio/modules''${GIO_EXTRA_MODULES:+:}$GIO_EXTRA_MODULES"
'';
})
(lib.mkIf (cfg.enable && cfg.settings != { }) {
# Make sure the dconf directory exists.