Requires icons it does not depend on

Bug #176929 reported by Jonathan Riddell
2
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Fix Released
Undecided
Pascal De Vuyst

Bug Description

Binary package hint: system-config-printer

system-config-printer-applet requires icons that it does not depend on. Installing it when you do not have Gnome installed causes it to crash when plugging in a printer.

system-config-printer-applet
Traceback (most recent call last):
  File "/usr/share/system-config-printer/applet.py", line 1127, in <module>
    service_running=service_running, trayicon=trayicon)
  File "/usr/share/system-config-printer/applet.py", line 260, in __init__
    pixbuf = theme.load_icon (ICON, 22, 0)
gobject.GError: Icon 'printer' not present in theme

Revision history for this message
Jonathan Riddell (jr) wrote :

Another missing dependency

>system-config-printer
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 35, in <module>
    import gnome
ImportError: No module named gnome

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

> gobject.GError: Icon 'printer' not present in theme

Seems to be related to this change:
https://bugs.launchpad.net/ubuntu/+source/system-config-printer/+bug/152634/comments/6
https://bugs.launchpad.net/ubuntu/+source/system-config-printer/+bug/152634/comments/7

Does it work when changing the icon to Icon=printer.png in the desktop file?

Changed in system-config-printer:
assignee: nobody → pascal-devuyst
status: New → Incomplete
Revision history for this message
Jonathan Riddell (jr) wrote :

It has nothing to do with .desktop files. It needs the gnome icon theme.

Changed in system-config-printer:
status: Incomplete → New
Revision history for this message
Jonathan Riddell (jr) wrote :

Here's another missing depencency. Seems to need notification-daemon

>system-config-printer-applet
refresh
Traceback (most recent call last):
  File "/usr/share/system-config-printer/applet.py", line 1128, in <module>
    service_running=service_running, trayicon=trayicon)
  File "/usr/share/system-config-printer/applet.py", line 291, in __init__
    self.refresh ()
  File "/usr/share/system-config-printer/applet.py", line 685, in refresh
    self.check_state_reasons (c, my_printers)
  File "/usr/share/system-config-printer/applet.py", line 565, in check_state_reasons
    self.notify.show ()
gobject.GError: The name org.freedesktop.Notifications was not provided by any .service files

Changed in system-config-printer:
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-printer - 0.7.78+svn1799-0ubuntu1

---------------
system-config-printer (0.7.78+svn1799-0ubuntu1) hardy; urgency=low

  * New upstream release
     o Subversion snapshot r1799
     o Made assignment of PPDs to auto-detected printers more reliable,
       especially for Bluetooth and network printers. This is done by
       supporting weird auto-detection output of CUPS backends, as
       "Unknown" for make and model but useful info field, device ID
       for Bluetooth not identical with device ID for USB/parallel, no
       manufacturer name in make-and-model field, case-insensitive search
       when cleaning model name.
     o Handle the manufacturer name "KONICA MINOLTA" correctly (LP: #64046).
     o If the OpenPrinting database (foomatic-db) recommends a non-PostScript
       driver, use this driver, even if there is a vendor PPD for the
       PostScript mode (HP LaserJet 12xx/13xx, LP: #172550).
     o Allow listing of all files in file chooser dialog for selecting a
       custom PPD file (LP: #153585).
  * debian/control: Added missing dependencies: python-gnome2 and
    gnome-icon-theme (LP: #176929).

 -- Till Kamppeter <email address hidden> Mon, 07 Jan 2008 16:44:22 +0000

Changed in system-config-printer:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.