<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=us-ascii" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 07/23/2009 04:30 PM, rgheck wrote:
<blockquote cite="mid:4A68C868.8000009@comcast.net" type="cite">
  <pre wrap="">On 07/23/2009 03:55 PM, rgheck wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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?


    </pre>
  </blockquote>
  <pre wrap=""><!---->OK, I have some answer to the latter, but it doesn't seem to work:

[rgheck@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?

  </pre>
</blockquote>
Uhh, never mind. Stupid me typed the uid wrong. 8s look like Bs....<br>
<br>
rh<br>
<br>
<blockquote cite="mid:4A68C868.8000009@comcast.net" type="cite">
  <pre wrap="">rh

_______________________________________________
fedora-kde mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fedora-kde@lists.fedoraproject.org">fedora-kde@lists.fedoraproject.org</a>
<a class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/fedora-kde">https://admin.fedoraproject.org/mailman/listinfo/fedora-kde</a>
New to KDE4? - get help from <a class="moz-txt-link-freetext" href="http://userbase.kde.org">http://userbase.kde.org</a>
  </pre>
</blockquote>
<br>
</body>
</html>