Notifications not shown; instead warning + error + program aborts
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:
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
ProcVersionSign
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)
Changed in notify-python (Ubuntu): | |
status: | New → Confirmed |
to fix the problem you need to initialize pynotify first: init("app- name")
pynotify.