PDA

View Full Version : HOWTO: Make KDE only automount NOT autoexecute


GoldBuggie
November 15th, 2005, 01:50 AM
If you are troubled by the autoexecution of konqueror or kaffeine whenever you insert a CD or USB-memorystick etc and you would like things to automount but not execute a software then this is the thing for you.

The software that handles automount and all these execution is ivman. A nice litte utility but not configured to my likings. Here is how to make it ONLY automount.

sudo kate /etc/ivman/IvmConfigActions.xml

the only thing that should be in that file is this:

<?xml version="1.0" encoding="UTF-8"?>
<ivm:ActionsConfig version="0.2" xmlns:ivm="http://www.eikke.com/ivm">
<!-- try to mount any mountable volume at all -->
<ivm:Match name="ivm.mountable" value="true">
<ivm:Option name="mount" value="true" />
</ivm:Match>

</ivm:ActionsConfig>

Everything else in that file are either for execution or popup signals when a printer is detected. If you do not want to remove everything is that file just comment everything except the above section.

To comment out things in a .xml file just wrap it with
<!-- ...CODE... -->

Divan Santana
January 18th, 2006, 05:34 AM
Perhaps just apt-get remove ivman

This removes the program that automounts stuff as kde3.5 has a built in handler that does a nicer job of it...

GoldBuggie
January 18th, 2006, 11:31 AM
That is another choice but I do find ivman to be a nice tool which you can configure some individual behaviour and since kubuntu us configured for ivman I don't think removing it is the ideal behaviour. But to each his own.

DrinkYourOvaltine
January 19th, 2006, 12:01 AM
Thanks for this! - I have been getting more and more frustrated with both konqueror and kscd opening when I put a cd in.

(That kscd check-box to disable autoplay is a filthy lie!)

gingermark
April 22nd, 2006, 07:28 AM
sudo kate /etc/ivman/IvmConfigActions.xml really should be kdesu kate /etc/ivman/IvmConfigActions.xml

From https://wiki.kubuntu.org/RootSudo:
NEVER use sudo to start graphical programs. You should always use gksudo or kdesu to run such programs, otherwise new login attempts may fail.

tsb
May 13th, 2006, 03:41 PM
sudo kate /etc/ivman/IvmConfigActions.xml really should be kdesu kate /etc/ivman/IvmConfigActions.xml

From https://wiki.kubuntu.org/RootSudo:

Thanks. I always wondered why kate always crashed when I tried sudo. On reboot the password prompt would come up but open a blank page. Now it works perfectly.

Thanks to the OP for help with that launching crap.

Jucato
July 12th, 2006, 06:52 PM
Question: Doesn't System Settings > Hardware > Storage Media have settings for what to do when a certain media is inserted? Maybe it could be set to "Do Nothing"?