<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 07/23/2009 04:33 PM, Rex Dieter wrote:
<blockquote cite="mid:4A68C933.7030906@math.unl.edu" type="cite">
  <pre wrap="">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/.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I would've expected
.kde/share/apps/solid/actions/
to work like the system-provided
/usr/share/kde4/apps/solid/actions/

  </pre>
</blockquote>
OK, I must be doing something worse wrong. Even if I put it into the
system directory, I don't get a new choice.<br>
<br>
I thought maybe I needed to rebuild the sycoca, so I tried running
"kbuildsyscoca4". That didn't help.<br>
<br>
Here's the file, for reference:<br>
<br>
[rgheck@rghquad actions]$ pwd<br>
/home/rgheck/.kde/share/apps/solid/actions<br>
[rgheck@rghquad actions]$ cat mount.desktop<br>
[Desktop Entry]<br>
X-KDE-Solid-Predicate=[ [ StorageVolume.ignored == false AND [
StorageVolume.usage == 'FileSystem' OR StorageVolume.usage ==
'Encrypted' ] ] ]<br>
Type=Service<br>
Actions=open;<br>
<br>
[Desktop Action open]<br>
Name=Mount<br>
Exec=gnome-mount -n -h %i<br>
Icon=xload<br>
<br>
<br>
Richard<br>
<br>
<br>
<br>
</body>
</html>