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 :slight_smile:

Thanks in advance for any pointers!

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.

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 :slight_smile:


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

I remember that reading this gave me at least a basic idea about udev:
But that was some time ago and I have no idea how up-to-date it is.