Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1
system-config-printer
system-config-printer-prefill-name-descr.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File system-config-printer-prefill-name-descr.patch of Package system-config-printer
diff --git a/system-config-printer.py b/system-config-printer.py index 9b5830e..e509d8b 100755 --- a/system-config-printer.py +++ b/system-config-printer.py @@ -3410,9 +3410,12 @@ class NewPrinterGUI(GtkGUI): if step > 0 and next_page_nr == 0: # About to choose a name. # Suggest an appropriate name. name = None + descr = None + try: - if self.device.id: + if self.device.id and not self.device.type in ("socket", "lpd", "ipp", "bluetooth"): name = self.device.id_dict["MDL"] + descr = "%s %s" % (self.device.id_dict["MFG"], self.device.id_dict["MDL"]) except: nonfatalException () @@ -3421,6 +3424,7 @@ class NewPrinterGUI(GtkGUI): mname = self.ppd.findAttr ("modelName").value make, model = cupshelpers.ppds.ppdMakeModelSplit (mname) name = "%s %s" % (make, model) + descr = "%s %s" % (make, model) except: nonfatalException () @@ -3430,6 +3434,9 @@ class NewPrinterGUI(GtkGUI): name = self.mainapp.makeNameUnique (name) self.entNPName.set_text (name) + if self.entNPDescription.get_text () == '' and descr: + self.entNPDescription.set_text (descr) + self.ntbkNewPrinter.set_current_page(next_page_nr) self.setNPButtons()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor