Re: Need to write app for usb storage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2009-08-04 at 09:14 +0100, Magnus Therning wrote:
> 
> Wouldn't using udev or inotify be better way to do that, at least on
> Linux?  Maybe there's even a Gnome abstraction providing x-platform
> notifications for system changes that I don't know of.

I would be surprised if there is not a dbus notification sent out when
media is added/removed.

And indeed, a little test here reveals that there is indeed a tonne of
info dumped on the dbus when media is added.  The first message is:

signal sender=:1.44 -> dest=(null destination) serial=137 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=DriveConnected
   string "org.gtk.Private.HalVolumeMonitor"
   string "0x8a786e0"
   struct {
      string "0x8a786e0"
      string "USB Drive"
      string ". GThemedIcon drive-removable-media-usb drive-removable-media drive-removable drive"
      boolean false
      boolean true
      boolean true
      boolean true
      boolean true
      array [
      ]
      array [
         dict entry(
            string "hal-udi"
            string "/org/freedesktop/Hal/devices/storage_serial_USB_2_0_Storage_Device_00000000000000000000_0_0"
         )
         dict entry(
            string "unix-device"
            string "/dev/sdd"
         )
      ]
   }

As well as lots of messages from "path=/org/gtk/vfs/mounttracker;
interface=org.gtk.vfs.MountTracker;".

b.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list

[Index of Archives]     [Fedora Desktop]     [Trinity Users]     [KDE]     [Gimp]     [Yosemite News]

  Powered by Linux