Results 1 to 4 of 4

Thread: How to automaticly run a script on disc insertion in KDE 4.14.3?

  1. #1

    Default How to automaticly run a script on disc insertion in KDE 4.14.3?

    Hi all,
    I am trying to finish the last thing on my media server, and that's having the system autorun a script once a CD and/or DVD is inserted into the drive.
    I've got all my scripts running, and they work from the commandline, but I cannot for the life of me figure out how to get the ssytem to just run the script on detection of the media in the drive.

    I'm running on 13.1 w/KDE 4.11.5
    <edited as I forgot the server was on 13.1 and KDE 4.11.5 - tnx>

    I _think_ I may have to resort to udev rules? but before I go down that rabbit hole, i was hoping there was an easier way that I just can't figure out :-)

    Thanks in advance for any pointers!

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,153

    Default Re: How to automaticly run a script on disc insertion in KDE 4.14.3?

    My idea is that you should not concentrate on KDE doing this.

    As I understand you, this should be a function of the system. And not depend on the fact if an end-user is loged in in some GUI with some desktop (maybe KDE or another one) or not.

    I assume you understand that more or less, because you mention udev, which is of course a system thingy and not a KDE tool.

    Maybe I understand your goal completely wrong, but my impression is that you are confuused about system server functionality vs. desktop features.
    Henk van Velden

  3. #3

    Default Re: How to automaticly run a script on disc insertion in KDE 4.14.3?

    I do beleive you are right.. in browsing the web, I kept seening ways to accomplish this within gnome.. but the more I think of it, I'd want it to happen at a system level, regardless of the desktop.
    So, if I am reading you correctly, I'm off to read up on udev rules :-)

    Thanks!

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,153

    Default Re: How to automaticly run a script on disc insertion in KDE 4.14.3?

    Quote Originally Posted by nitehawk337 View Post
    So, if I am reading you correctly, I'm off to read up on udev rules :-)

    Thanks!
    Maybe yes (other advice may still come in here).

    I remember that reading this gave me at least a basic idea about udev: http://reactivated.net/writing_udev_rules.html
    But that was some time ago and I have no idea how up-to-date it is.
    Henk van Velden

Posting Permissions

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