Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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_hint("x",400)
  n.set_hint("y",400)
  n.set_timeout(2 * 3600 * 1000)
  if not n.show():
    displayError("Unable to show notification...")

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

share|improve this question
add comment

1 Answer

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
1  
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
1  
@RoryMcCann: Lol, I'm aware of that, I was answering his question based on what he asked. –  RolandiXor Feb 18 '12 at 17:04
1  
@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
show 1 more comment

Your Answer

 
discard

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.