File system-config-printer-no-openprinting.patch of Package system-config-printer.import5530
Index: system-config-printer-1.2.5/cupshelpers/openprinting.py
===================================================================
--- system-config-printer-1.2.5.orig/cupshelpers/openprinting.py
+++ system-config-printer-1.2.5/cupshelpers/openprinting.py
@@ -46,6 +46,11 @@ class _QueryThread (threading.Thread):
self.setDaemon (True)
def run (self):
+ ## Disabled on openSUSE, see discussion in https://bugzilla.novell.com/show_bug.cgi?id=733542
+ if self.callback != None:
+ self.callback (403, self.user_data, None)
+ return
+
# CGI script to be executed
query_command = "/query.cgi"
# Headers for the post request
Index: system-config-printer-1.2.5/system-config-printer.py
===================================================================
--- system-config-printer-1.2.5.orig/system-config-printer.py
+++ system-config-printer-1.2.5/system-config-printer.py
@@ -3974,6 +3974,8 @@ class NewPrinterGUI(GtkGUI):
# Set up OpenPrinting widgets.
self.openprinting = cupshelpers.openprinting.OpenPrinting ()
self.openprinting_query_handle = None
+ ## Disabled on openSUSE, see discussion in https://bugzilla.novell.com/show_bug.cgi?id=733542
+ self.rbtnNPDownloadableDriverSearch.hide()
combobox = self.cmbNPDownloadableDriverFoundPrinters
cell = gtk.CellRendererText()
combobox.pack_start (cell, True)
@@ -4712,6 +4714,7 @@ class NewPrinterGUI(GtkGUI):
self.btnNPBack.hide()
self.btnNPForward.show()
downloadable_selected = False
+ ## openSUSE: just a guard to know when the name of the widget to hide changes
if self.rbtnNPDownloadableDriverSearch.get_active ():
combobox = self.cmbNPDownloadableDriverFoundPrinters
iter = combobox.get_active_iter ()
@@ -6677,6 +6680,8 @@ class NewPrinterGUI(GtkGUI):
elif self.rbtnNPPPD.get_active():
ppd = cups.PPD(self.filechooserPPD.get_filename())
else:
+ ## Disabled on openSUSE, see discussion in https://bugzilla.novell.com/show_bug.cgi?id=733542
+ return
# PPD of the driver downloaded from OpenPrinting XXX
treeview = self.tvNPDownloadableDrivers
model, iter = treeview.get_selection ().get_selected ()