For desktop application (because we are GTK+ forum) there is HAL (Hardware Abstraction Layer) http://www.freedesktop.org/wiki/Software/hal to receive events and informations from devices and the kernel, gnome-volume-manager use HAL to know when a device has been attached then do some task that the user has defined (eg. mount).
--- ajhwb --- garthskidst...@gmail.com wrote: From: "Garth's KidStuff" <garthskidst...@gmail.com> To: gtk-app-devel-list@gnome.org Subject: usb plug/unplug notifications Date: Thu, 9 Jul 2009 17:38:24 -0500 Hi All, I'd like to know how to intercept usb events. Right now, I'm polling for changes, but that isn't the "right" way to handle device discovery. Is there a way to get a notification when something happens in the usb world? Thanks in advance. -Garth -- Garth Upshaw Garth's KidStuff _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list _____________________________________________________________ Listen to KNAC, Hit the Home page and Tune In Live! ---> http://www.knac.com _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list