Skip to content

Commit

Permalink
nixos/gdk-pixbuf: move GDK_PIXBUF_MODULE_FILE to sessionVariables
Browse files Browse the repository at this point in the history
Some environments do not load /etc/profile, so environment.variables do
not work. In particular, this is the case for Plasma Wayland.

Use environment.sessionVariables for setting that variable instead,
which is handled by PAM and hence more reliable.
  • Loading branch information
alois31 committed Mar 18, 2023
1 parent 738aef5 commit efd23ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/x11/gdk-pixbuf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ in
# loaders.cache based on that and set the environment variable
# GDK_PIXBUF_MODULE_FILE to point to it.
config = lib.mkIf (cfg.modulePackages != []) {
environment.variables = {
environment.sessionVariables = {
GDK_PIXBUF_MODULE_FILE = "${loadersCache}";
};
};
Expand Down

0 comments on commit efd23ff

Please sign in to comment.