Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know why I'm unable to change notification settings using pynotify?

I can create a notification, modify it (for example so it should show up in the middle of my display), and tell it to display, but it still shows up in the upper-right corner.

And if this is configurable, anyone know how to do so?

I'm running Ubuntu 10.10, using fluxbox.

Here is the function that displays the notification:

def displayNotification(msg):
  """Display the given notification."""
  if not pynotify.init("hey"):
    displayError("Unable to initialize notification library...")

  n = pynotify.Notification("Hey!", msg)
  n.set_timeout(2 * 3600 * 1000)
  if not
    displayError("Unable to show notification...")

This worked exactly as expected under Arch Linux, before I switched to Ubuntu.

share|improve this question
up vote 4 down vote accepted

Notify-OSD does not allow for customization by default (extremely frustrating I know) - but it is so by design. You would need to use another notification method to get the same positioning and other options.

share|improve this answer
So pynotify falls under notify-osd? – alesplin Jan 20 '11 at 22:54
from what you describe, yes. – RolandiXor Jan 20 '11 at 23:05
Grrrr. Thanks. :) – alesplin Jan 20 '11 at 23:15
@RoryMcCann: Lol, I'm aware of that, I was answering his question based on what he asked. – RolandiXor Feb 18 '12 at 17:04
@RolandTaylor Oh yes, but in case other people are reading this and think the problem is with pynotify per se – Rory Feb 18 '12 at 18:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.