nixpkgs/nixos/modules/services/x11/desktop-managers
Ambroz Bizjak d9fa88dfe8 Use a NixOS module for generating the gdk-pixbuf loaders cache.
Fixes issue #33231 and makes it possible to enable Plasma and KDE at the same time.

Previously, this worked like this:
- The gdk-pixbuf package comes with a cache file covering the modules bundled
  with gdk-pixbuf.
- The librsvg package comes with a cache covering modules from gdk-pixbuf as
  well as librsvg.
- plasma5 and xfce modules set the environment variable GDK_PIXBUF_MODULE_FILE
  to the one from librsvg, so that SVG was supported in addition to the
  formats supported by gdk-pixbuf. However if both were enabled a configuration
  conflict would result (despite setting to the same value).

While this sort of worked (ignoring the conflict which perhaps could be hacked
around), it is unscalable and a hack, as there would be a real problem when one
wanted to add a third package that supports additional image formats.

A new NixOS module (gdk-pixbuf) is added with a configuration option
(modulePackages) that other modules use to request specific packages to be
included in the loaders cache. When any package is present in the list, the
module generates a system-wide loaders cache which includes the requested
packages (and always gdk-pixbuf itself), and sets the environment variable
GDK_PIXBUF_MODULE_FILE to point to the generated cache file.

The plasma5 and xfce modules are updated to add librsvg to modulePackages
instead of setting GDK_PIXBUF_MODULE_FILE.

Note that many packages create wrappers that set GDK_PIXBUF_MODULE_FILE,
some directly to the one from librsvg. Therefore this change does not
change the existing hack in the librsvg package which ensures that
file is generated. This change aims only to solve the conflict in the
global environent variable configuration.
2018-06-25 16:23:45 +02:00
..
default.nix Revert restrictive validation behavior for DM/WM defaults in the X module 2018-03-28 20:34:05 +02:00
enlightenment.nix tree-wide: autorename gnome packages to use dashes 2018-02-25 17:41:16 +01:00
gnome3.nix nixos/flatpak: allow specifying extra portals 2018-05-15 13:31:13 +02:00
kodi.nix nixos/treewide: remove boolean examples for options 2017-03-17 23:36:19 +01:00
lumina.nix lumina: 1.2.0-p1 -> 1.3.0 2017-06-29 08:13:09 -03:00
lxqt.nix nixos/lxqt: enable upower if config.powerManagement is enabled (#38318) 2018-04-06 08:49:55 +01:00
mate.nix mate/mate-screensaver: fixed unixAuth 2018-04-01 19:01:26 +02:00
maxx.nix maxx: use libredirect 2017-08-24 19:34:08 +03:00
none.nix
plasma5.nix Use a NixOS module for generating the gdk-pixbuf loaders cache. 2018-06-25 16:23:45 +02:00
xfce.nix Use a NixOS module for generating the gdk-pixbuf loaders cache. 2018-06-25 16:23:45 +02:00
xterm.nix nixos: services.xserver.desktopManager.xterm.enable: fix type 2018-05-13 01:15:23 +00:00