mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-02 23:21:02 +01:00
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:
parent
4e9efaa68b
commit
d3a3aee558
2 changed files with 4 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ let
|
|||
if [ -n "$__HM_SESS_VARS_SOURCED" ]; then return; fi
|
||||
export __HM_SESS_VARS_SOURCED=1
|
||||
|
||||
export GIO_EXTRA_MODULES="${pkgs.dconf}/lib/gio/modules"
|
||||
export LOCALE_ARCHIVE_2_27="${config.i18n.glibcLocales}/lib/locale/locale-archive"
|
||||
export V1="v1"
|
||||
export V2="v2-v1"
|
||||
|
|
@ -18,6 +17,7 @@ let
|
|||
export XDG_DATA_HOME="/home/hm-user/.local/share"
|
||||
export XDG_STATE_HOME="/home/hm-user/.local/state"
|
||||
|
||||
export GIO_EXTRA_MODULES="${pkgs.dconf}/lib/gio/modules''${GIO_EXTRA_MODULES:+:}$GIO_EXTRA_MODULES"
|
||||
'';
|
||||
|
||||
darwinExpected = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue