Pynotify: connection closed
===

Pynotify is giving an unusual error executing in Fedora 17 

    Gtk-Message: Failed to load module "pk-gtk-module"
    Traceback (most recent call last):
      File "d.py", line 10, in <module>
        n.show()
    gio.Error: The connection is closed

The code is as below :- 

    import gtk, pynotify, sys, os
    
    def callback_function(notification=None, action=None, data=None):
         print "It worked!"
    pynotify.init( "Some Application or Title" )
    n = pynotify.Notification("Title", "body", "dialog-warning")
    n.set_urgency(pynotify.URGENCY_NORMAL)
    n.set_timeout(pynotify.EXPIRES_NEVER)
    n.add_action("clicked","Button text", callback_function, None)
    n.show()

But this code works perfectly in another Fedora 16 machine. 

