Merge lp:~rafalcieslak256/ubuntu-accomplishments-daemon/fixnotify into lp:ubuntu-accomplishments-daemon
Status: | Merged |
---|---|
Merged at revision: | 118 |
Proposed branch: | lp:~rafalcieslak256/ubuntu-accomplishments-daemon/fixnotify |
Merge into: | lp:ubuntu-accomplishments-daemon |
Diff against target: |
80 lines (+13/-12) 3 files modified
accomplishments/daemon/api.py (+10/-9) bin/accomplishments-daemon (+2/-2) debian/control (+1/-1) |
To merge this branch: | bzr merge lp:~rafalcieslak256/ubuntu-accomplishments-daemon/fixnotify |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Rafał Cieślak | Needs Information | ||
Jono Bacon | Needs Fixing | ||
Review via email: mp+117312@code.launchpad.net |
Description of the change
This fixes #1003010 (Daemon hangs when calling pynotify, if run without -n flag).
The problem was that pynotify was unable to process, as it's own event loops were not running. We need some kind of twisted reactor that would take care of them, and a GIreactor looked fine, as it implements integration with all that GObject stuff. Therefore I switched to it (from glib2reactor, did we use it at all? I can find trails of it's usage, so probably this will need some more testing). That of course means switching to gi.repository (and gi.repository.
I just tested this and I don't see any notification bubbles. I ran this with:
twistd -oy bin/accomplishm ents-daemon
The bubbles not appearing may be our old friend https:/ /bugs.launchpad .net/ubuntu- accomplishments -daemon/ +bug/1031190 so I checked the log and when I run the command above I oddly don't get any logging in .cache/ accomplishments /logs.