Writing a HAL/DBUS Python program

Jono Bacon jonobacon at yahoo.com
Wed Jan 12 04:13:42 PST 2005


Hi all,

I am fairly new to Python and I have recently got my
head around writing GNOME applications with Glade.
Anyway, I am interested in writing a program to detect
when a USB stick is plugged in, and to then copy a
file to the USB stick. This obviously needs some
HAL/DBUS sprinking into my Python program.

I have hunted around the interweb for documentation
about this and found relatively little. I am not sure
where I need to start. Can any of you help with these
questions:

 - Firstly, in terms of detecting if the device has
been plugged in, is this a HAL or DBUS thing?

 - What kind of code would I need to write to detect
if a USB device has been plugged in?

I am more than happy to write some tutorials on how to
do this if you chaps can help me out with getting
started.

Many thanks. :)

  Jono



=====
Jono Bacon - http://www.jonobacon.org/
Professional Writer / Web Developer / Musician


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list