Gnome app install refuses to start after uninstallation of applications

Bug #13212 reported by Petri Pennanen
8
Affects Status Importance Assigned to Milestone
gnome-app-install (Ubuntu)
Fix Released
Medium
Jeff Waugh

Bug Description

This is what triggered this bug for me:
1. Start gnome-app-install
2. Uninstall gthumb and openoffice. Install abiword and gnumeric.
3. Close gnome-app-install.
4. Start gnome-app-install

Now gnome app intall should start again. Instead it dies silently. Running it
from a terminal provides the output below. This is Hoary with
gnome-app-install-0+20050217-1 and hicolor-icon-theme-0.7-1

# sudo gnome-app-install
Password:
Got badly sized icon for gnome-util
Got non-package menu entry GNOME Utilities
Icon gimp is not in theme
Icon gthumb is not in theme
Icon mozilla is not in theme
Icon abiword_48 is not in theme
Traceback (most recent call last):
  File "/usr/bin/gnome-app-install", line 26, in ?
    app = AppInstall("/usr/share/gnome-app-install")
  File "/usr/lib/gnome-app-install/AppInstall.py", line 114, in __init__
    self.populate_menu()
  File "/usr/lib/gnome-app-install/AppInstall.py", line 228, in populate_menu
    self.populate_from_entry(self.store, menu)
  File "/usr/lib/gnome-app-install/AppInstall.py", line 210, in populate_from_entry
    self.populate_from_entry(store, entry, i)
  File "/usr/lib/gnome-app-install/AppInstall.py", line 214, in populate_from_entry
    store.set(i, self.COL_TYPE, self.TYPE_PACKAGE, self.COL_NAME,
xmlescape(entry.DesktopEntry.getName()), self.COL_DESC,
xmlescape(entry.DesktopEntry.getComment()), self.COL_ICON,
self.icon(entry.DesktopEntry.get("X-AppInstall-Icon", "") or
entry.DesktopEntry.getIcon(), 24), self.COL_PACKAGE,
entry.DesktopEntry.get("X-AppInstall-Package"))
  File "/usr/lib/gnome-app-install/AppInstall.py", line 253, in icon
    icon = self.icons.load_icon(name, size, 0)
gobject.GError: Failed to open file
'/usr/share/icons/hicolor/32x32/apps/ooo_office.xpm': No such file or directory

Revision history for this message
Petri Pennanen (suvarin) wrote :

After updating several packages (not gnome-app-install that still is
0+20050217-1) I can no longer reproduce this bug. Gnome-app-install works,
installing and uninstalling packages does not trigger this bug.

Revision history for this message
Michael Vogt (mvo) wrote :

Just got a similar one after uninstall glade:

Traceback (most recent call last):
  File "/usr/lib/gnome-app-install/AppInstall.py", line 335, in closeClicked
    self.applyClicked(None)
  File "/usr/lib/gnome-app-install/AppInstall.py", line 324, in applyClicked
    self.updateCache()
  File "/usr/lib/gnome-app-install/AppInstall.py", line 142, in updateCache
    self.populate_menu()
  File "/usr/lib/gnome-app-install/AppInstall.py", line 244, in populate_menu
    self.populate_from_entry(self.store, menu)
  File "/usr/lib/gnome-app-install/AppInstall.py", line 215, in populate_from_entry
    self.populate_from_entry(store, entry, i)
  File "/usr/lib/gnome-app-install/AppInstall.py", line 225, in populate_from_entry
    store.set(i, self.COL_TYPE, self.TYPE_PACKAGE, self.COL_NAME,
xmlescape(entry.DesktopEntry.getName()), self.COL_DESC,
xmlescape(entry.DesktopEntry.getComment()), self.COL_ICON,
self.icon(entry.DesktopEntry.get("X-AppInstall-Icon", "") or
entry.DesktopEntry.getIcon(), 24), self.COL_PACKAGE, pkgname)
  File "/usr/lib/gnome-app-install/AppInstall.py", line 273, in icon
    icon = self.icons.load_icon(name, size, 0)
gobject.GError: Failed to open file '/usr/share/pixmaps/glade-2.png': No such
file or directory

so this is not (yet) fixed

Revision history for this message
Michael Vogt (mvo) wrote :

Created an attachment (id=1724)
this patch should fix the issue, it's not perfect but should be good enough

Revision history for this message
Michael Vogt (mvo) wrote :

This problem is fixed with the upload of nome-app-install_0+20050321-1. Please
reopen if you still have problems.

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.