mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
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 (cherry picked from commitd3a3aee558) Signed-off-by: Austin Horstman <khaneliman12@gmail.com> Co-authored-by: Thomas Mühlbacher <tmuehlbacher@posteo.net>
This commit is contained in:
parent
0d13ea58d5
commit
afe9ce8b20
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue