Comment 9 for bug 691759

Revision history for this message
Christopher Stubban (stoobers) wrote :

Hi,
I got rid of this bug for ubuntu/kubuntu 10.04. I may have created other bugs in the process, but this change allows me to launch "caffeine -a", then quit out of it with ctrl-c

Upon doing this, the screen saver was suppressed for 30 minutes, so it looks like the fix sort of works. I picked the ibus-engine icon because it looked like a gear and was innocent enough looking.

To edit the file, I used vim, with the command:
sudo vim /usr/bin/../share/pyshared/caffeine/main.py

The line producing the error shows up on line 53:
Before:
generic = icon_theme.load_icon("application-x-executable", 16, gtk.ICON_LOOKUP_NO_SVG)

After:
generic = icon_theme.load_icon("ibus-engine", 16, gtk.ICON_LOOKUP_FORCE_SVG)

Hope this helps.
stoobers