After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 683233 - Images aren't actually installed in /usr/share/gnome-clocks/pixmaps
Images aren't actually installed in /usr/share/gnome-clocks/pixmaps
Status: RESOLVED FIXED
Product: gnome-clocks
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Clocks maintainer(s)
Clocks maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-09-03 02:37 UTC by Jeremy Bicha
Modified: 2012-09-03 13:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Images aren't actually installed in /usr/share/gnome-clocks/pixmaps (1.75 KB, patch)
2012-09-03 02:37 UTC, Jeremy Bicha
committed Details | Review

Description Jeremy Bicha 2012-09-03 02:37:30 UTC
On Ubuntu 12.10 Alpha, I got this error when trying to add a world clock
or an alarm. On next start, gnome-clocks wouldn't even start until
I removed ~/.local/share/gnome-clocks/

Traceback (most recent call last):
  • File "/usr/lib/python2.7/dist-packages/gnomeclocks/app.py", line 397 in do_activate
    self.win = Window(self)
  • File "/usr/lib/python2.7/dist-packages/gnomeclocks/app.py", line 65 in __init__
    self.alarm = Alarm()
  • File "/usr/lib/python2.7/dist-packages/gnomeclocks/alarm.py", line 340 in __init__
    self.load_alarms()
  • File "/usr/lib/python2.7/dist-packages/gnomeclocks/alarm.py", line 388 in load_alarms
    self.add_alarm_widget(alarm)
  • File "/usr/lib/python2.7/dist-packages/gnomeclocks/alarm.py", line 399 in add_alarm_widget
    widget = AlarmWidget(self, alarm, alert)
  • File "/usr/lib/python2.7/dist-packages/gnomeclocks/alarm.py", line 297 in __init__
    self.drawing.render(timestr, img, isDay, repeat)
  • File "/usr/lib/python2.7/dist-packages/gnomeclocks/widgets.py", line 37 in render
    self.surface = cairo.ImageSurface.create_from_png(img)
cairo.Error: file not found

Comment 1 Jeremy Bicha 2012-09-03 02:37:33 UTC
Created attachment 223234 [details] [review]
Images aren't actually installed in /usr/share/gnome-clocks/pixmaps

Fixes this crash:

Traceback (most recent call last):
  • File "/usr/lib/python2.7/dist-packages/gnomeclocks/app.py", line 397 in do_activate
    self.win = Window(self)
  • File "/usr/lib/python2.7/dist-packages/gnomeclocks/app.py", line 65 in __init__
    self.alarm = Alarm()
  • File "/usr/lib/python2.7/dist-packages/gnomeclocks/alarm.py", line 340 in __init__
    self.load_alarms()
  • File "/usr/lib/python2.7/dist-packages/gnomeclocks/alarm.py", line 388 in load_alarms
    self.add_alarm_widget(alarm)
  • File "/usr/lib/python2.7/dist-packages/gnomeclocks/alarm.py", line 399 in add_alarm_widget
    widget = AlarmWidget(self, alarm, alert)
  • File "/usr/lib/python2.7/dist-packages/gnomeclocks/alarm.py", line 297 in __init__
    self.drawing.render(timestr, img, isDay, repeat)
  • File "/usr/lib/python2.7/dist-packages/gnomeclocks/widgets.py", line 37 in render
    self.surface = cairo.ImageSurface.create_from_png(img)
cairo.Error: file not found

Comment 2 Jeremy Bicha 2012-09-03 02:38:09 UTC
Oh, and the local clock didn't show up either.
Comment 3 Paolo Borelli 2012-09-03 09:42:01 UTC
Review of attachment 223234 [details] [review]:

Ops, indeed. I never saw this because I always tried with a custom prefix :(
Comment 4 Jeremy Bicha 2012-09-03 13:41:15 UTC
Attachment 223234 [details] pushed as 427ff98 - Images aren't actually installed in /usr/share/gnome-clocks/pixmaps