Comment 0 for bug 926433

Revision history for this message
Paul Broadhead (pjbroad) wrote : indicator-weather leaves .pid file in /tmp and will not restart

Description: Ubuntu 11.10
Release: 11.10

indicator-weather:
  Installed: 11.05.31-0ubuntu2.1
  Candidate: 11.05.31-0ubuntu2.1
  Version table:
 *** 11.05.31-0ubuntu2.1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ oneiric-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     11.05.31-0ubuntu2 0
        500 http://gb.archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages

Expect the indicator to start when run, but it does not but gives the following error message:
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Another instance of this program is already running

At some stage I assume the indicator crashed and left a file in /tmp called indicator-weather-500.pid. The log file ~/.cache/indicator-weather.log shows extra messages, just that another instances is running. I checked the process list and no instance was running. Once the .pid file had been deleted, the indicator started and ran as normal.