Notifications not shown; instead warning + error + program aborts

Bug #813634 reported by Greg A
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Ubuntu Tips Applet
New
Undecided
Unassigned
notify-python (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

(test.py:6087): libnotify-WARNING **: you must call notify_init() before showing
**
libnotify:ERROR:notification.c:568:notify_notification_show: code should not be reached
Aborted (core dumped)

This happens in oneiric with version 0.1.1-2ubuntu1 of python-notify. (Installing 0.1.1-2build4 from the natty repository fixes the issue.)

I have attached a very simple python program (three lines) that causes the output shown above

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: python-notify 0.1.1-2ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-5.6-generic 3.0.0-rc7
Uname: Linux 3.0.0-5-generic x86_64
Architecture: amd64
Date: Wed Jul 20 18:07:47 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110716)
ProcEnviron:
 LANGUAGE=en_GB:en
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: notify-python
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Greg A (etulfetulf) wrote :
summary: - (test.py:6087): libnotify-WARNING **: you must call notify_init() before
- showing ** libnotify:ERROR:notification.c:568:notify_notification_show:
- code should not be reached
+ Notifications not shown; instead warning + error + program aborts
Changed in notify-python (Ubuntu):
status: New → Confirmed
Revision history for this message
Julian Taylor (jtaylor) wrote :

to fix the problem you need to initialize pynotify first:
pynotify.init("app-name")

Revision history for this message
Evgeniy Trifonov (evgeniy.trifonov) wrote :

IMPORTANT: I'm on Utopic and installed it for Maverick version:

sudo add-apt-repository "deb http://ppa.launchpad.net/sagod/ppa/ubuntu maverick main"
sudo apt-get update
sudo apt-get install ubuntu-tips-applet

Fix not important, because indicator-fortune (launchpad.net/~thebernmeister/+archive/ubuntu/ppa) do task of app too (askubuntu.com/a/503974/189143), but ubuntu-tips-applet abandoned and not actual.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.