Results 1 to 7 of 7

Thread: HOWTO: Make KDE only automount NOT autoexecute

  1. #1
    Join Date
    Apr 2005
    Location
    Stockholm, Sweden
    Beans
    331
    Distro
    Kubuntu 7.10 Gutsy Gibbon
    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.

    Code:
     sudo kate /etc/ivman/IvmConfigActions.xml
    the only thing that should be in that file is this:
    Code:
     <?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:
    <!-- ...CODE... -->

  2. #2
    Join Date
    Sep 2005
    Location
    Johannesburg, South Afric
    Beans
    84
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: HOWTO: Make KDE only automount NOT autoexecute

    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...

  3. #3
    Join Date
    Apr 2005
    Location
    Stockholm, Sweden
    Beans
    331
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Make KDE only automount NOT autoexecute

    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.

  4. #4
    Join Date
    Feb 2005
    Beans
    21
    Distro
    Kubuntu 7.04 Feisty Fawn

    Re: HOWTO: Make KDE only automount NOT autoexecute

    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!)

  5. #5
    Join Date
    Apr 2005
    Location
    Innamincka, SA, Australia
    Beans
    571
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: HOWTO: Make KDE only automount NOT autoexecute

    Code:
     sudo kate /etc/ivman/IvmConfigActions.xml
    really should be
    Code:
    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.

  6. #6
    Join Date
    Mar 2006
    Beans
    112

    Re: HOWTO: Make KDE only automount NOT autoexecute

    Quote Originally Posted by gingermark
    Code:
     sudo kate /etc/ivman/IvmConfigActions.xml
    really should be
    Code:
    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.

  7. #7
    Join Date
    Jan 2006
    Location
    Laguna, Philippines
    Beans
    1,818

    Re: HOWTO: Make KDE only automount NOT autoexecute

    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"?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •