python scripts without gtk

Andy Hanton andyhanton at comcast.net
Thu Feb 17 15:01:31 PST 2005


I have written a small python script that listens for a usb key to be
connected.  I want to run it from rc.local, but that fails because
importing the gtk module makes the script try to connect to an X server.
Is there a way to access the glib main loop from python without using
the gtk module?  If there isn't, is there a plan to add a dbus.main
method to the dbus bindings that would start a main loop?  
-- 
Andy Hanton <andyhanton at comcast.net>



More information about the dbus mailing list