Skip to content

Commit

Permalink
nixos/gnome-desktop: fix adding printers with GNOME Control Center
Browse files Browse the repository at this point in the history
...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.
  • Loading branch information
bjornfor committed Jun 22, 2016
1 parent 453086a commit a156a8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/x11/desktop-managers/gnome3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ in {
services.telepathy.enable = mkDefault true;
networking.networkmanager.enable = mkDefault true;
services.upower.enable = config.powerManagement.enable;
services.dbus.packages = mkIf config.services.printing.enable [ pkgs.system-config-printer ];
hardware.bluetooth.enable = mkDefault true;

fonts.fonts = [ pkgs.dejavu_fonts pkgs.cantarell_fonts ];
Expand Down

0 comments on commit a156a8a

Please sign in to comment.