git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/gnome-desktop: fix adding printers with GNOME Control Center

...by adding system-config-printer to services.dbus.packages (if services.printing.enable is true). Without this patch, trying to add a printer will result in a little dialog saying "Failed to add new printer" and gnome-control-center will print this to the terminal (line wrapped): (gnome-control-center:3546): printers-cc-panel-WARNING **: \ GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: \ The name org.fedoraproject.Config.Printing was not provided by any .service files system-config-printer supplies the "org.fedoraproject.Config.Printing" dbus service, thus fixing the problem.

commita156a8ab1a8a89b93b10b226507d247a143a5e0e authorBjørn Forsman <bjorn.forsman@gmail.com> dateTue 21 Jun 2016, 23:52 (10 years ago) parent453086a
1 file changed+1
nixos/modules/services/x11/desktop-managers/gnome3.nix+1
nixos/modules/services/x11/desktop-managers/gnome3.nix+1
@@ -119,6 +119,7 @@ in {
119119 services.telepathy.enable = mkDefault true;
120120 networking.networkmanager.enable = mkDefault true;
121121 services.upower.enable = config.powerManagement.enable;
122+ services.dbus.packages = mkIf config.services.printing.enable [ pkgs.system-config-printer ];
122123 hardware.bluetooth.enable = mkDefault true;
123124
124125 fonts.fonts = [ pkgs.dejavu_fonts pkgs.cantarell_fonts ];