On 07/23/2009 04:30 PM, rgheck wrote: > On 07/23/2009 03:55 PM, rgheck wrote: > >> Hi, >> >> I'm trying to write a little desktop file that will allow me just to >> mount newly inserted devices, rather than to open them with Dolphin. I >> can see roughly how to do this, but have two questions: >> >> (i) Is there some local place one can put such files, instead of >> /usr/share/kde4/apps/solid/actions/? I've tried putting the file in >> .kde/share/kde4/apps/solid/actions/, but that didn't work, and I also >> tried .kde/share/apps/solid/actions/. >> >> (ii) How on earth would one go about just mounting the device? Is there >> some call to hal or whatever that can be made? >> >> >> > OK, I have some answer to the latter, but it doesn't seem to work: > > [rgheck at rghquad ~]$ dbus-send --system --print-reply > --dest=org.freedesktop.Hal > /org/freedesktop/Hal/devices/volume_uuid_4A56_7815 > org.freedesktop.Hal.Device.Volume.Mount string:"/media/disk" > string:"vfat" array:string:"" > Error org.freedesktop.DBus.Error.UnknownMethod: Method "Mount" with > signature "ssas" on interface "org.freedesktop.Hal.Device.Volume" > doesn't exist > > And yet: > > udi = '/org/freedesktop/Hal/devices/volume_uuid_4A56_7B15' > access_control.file = '/dev/sde1' (string) > access_control.type = 'removable-block' (string) > block.device = '/dev/sde1' (string) > ... > org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype > extra_options', 'extra_options', 'extra_options'} (string list) > org.freedesktop.Hal.Device.Volume.method_execpaths = > {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} > (string list) > org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', > 'Eject'} (string list) > org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', > 'as'} (string list) > > What have I done wrong? > > Uhh, never mind. Stupid me typed the uid wrong. 8s look like Bs.... rh > rh > > _______________________________________________ > fedora-kde mailing list > fedora-kde at lists.fedoraproject.org > https://admin.fedoraproject.org/mailman/listinfo/fedora-kde > New to KDE4? - get help from http://userbase.kde.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.fedoraproject.org/pipermail/kde/attachments/20090723/68864c99/attachment.html