Ticket #2444 (closed defect: fixed)
crash when an icon theme is missing
| Reported by: | nekohayo@… | Owned by: | asterix |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 |
| Component: | None | Version: | hg |
| Severity: | critical | Keywords: | crash patch |
| Cc: | Blocked By: | ||
| OS: | Blocking: |
Description
jeff@khloe:~/gajim$ ./launch.sh Traceback (most recent call last):
File "gajim.py", line 1993, in ?
Interface()
File "gajim.py", line 1890, in init
self.roster = roster_window.RosterWindow?()
File "/home/jeff/gajim/src/roster_window.py", line 3738, in init
self.make_jabber_state_images()
File "/home/jeff/gajim/src/roster_window.py", line 3107, in make_jabber_state_images
pixo = gtk.gdk.pixbuf_new_from_file(os.path.join(path, 'opened.png'))
gobject.GError: L'ouverture du fichier « ../data/iconsets/balloons/16x16/opened.png » a échoué : Aucun fichier ou répertoire de ce type
Explanation: on my distro-provided gajim, I added some icon sets for my roster. I downloaded the SVN trunk of gajim and ran gajim from the launcher script, but the icon sets are not inside that trunk, so gajim crashes.
Gajim should simply use a try and except clause in cases like this, and if the icon set cannot be found, revert to another one temporarily.
I made a patch here that solves the problem.
