22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
|
diff -up system-config-printer-1.4.5/system-config-printer.py.permission system-config-printer-1.4.5/system-config-printer.py
|
||
|
--- system-config-printer-1.4.5/system-config-printer.py.permission 2014-07-04 17:02:41.000000000 +0100
|
||
|
+++ system-config-printer-1.4.5/system-config-printer.py 2014-07-11 17:25:28.027096533 +0100
|
||
|
@@ -207,11 +207,13 @@ class GUI(GtkGUI):
|
||
|
Gtk.Window.set_default_icon_name ('printer')
|
||
|
|
||
|
edit_action = 'org.opensuse.cupspkhelper.mechanism.all-edit'
|
||
|
+ self.edit_permission = None
|
||
|
if Polkit:
|
||
|
- self.edit_permission = Polkit.Permission.new_sync (edit_action,
|
||
|
- None, None)
|
||
|
- else:
|
||
|
- self.edit_permission = None
|
||
|
+ try:
|
||
|
+ self.edit_permission = Polkit.Permission.new_sync (edit_action,
|
||
|
+ None, None)
|
||
|
+ except GLib.GError:
|
||
|
+ pass # Maybe cups-pk-helper isn't installed.
|
||
|
|
||
|
self.unlock_button = Gtk.LockButton ()
|
||
|
if self.edit_permission != None:
|