PyRoom needs failsafe theme handling after upgrades
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyRoom |
Fix Committed
|
Medium
|
Unassigned | ||
0.4 |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
When upgrading the theme format, fallbacks like we use on preferences should be implemented, as to not crash PyRoom when things from older custom theme files are missing.
Original report: Starting either pyroom 0.4.1 from the PPA, or the latest trunk retrieved just now with bzr branch lp:pyroom - crashes at startup with the following traceback:
Traceback (most recent call last):
File "/usr/bin/pyroom", line 38, in <module>
sys.
File "/usr/lib/
pyroom = BasicEdit(
File "/usr/lib/
self.gui = GUI(pyroom_config, self)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
parse_color = lambda x: gtk.gdk.
KeyError: 'textboxbg'
I'm using Ubuntu Jaunty AMD 64, Python 2.6.2.
summary: |
- 0.4.1 and lp:pyroom both crash at startup + PyRoom needs failsafe theme handling after upgrades |
description: | updated |
Changed in pyroom: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Did you run PyRoom before another version, perhaps?
Looks like something's wrong with the theme you're using. Deleting ~/.config/pyroom and ~/.local/ share/pyroom should restore default settings and make PyRoom work again.
If you did change theme settings in PyRoom preferences or by hand, I'd be interested in what could have changed the problem with that.
If this is a fresh installation that has never been run, the problem would be someplace else and would require further investigation