Mailinglist Archive: opensuse-kde (156 mails)

< Previous Next >
Re: [opensuse-kde] Launch program when a MTP device is attached
  • From: Stephan Kulow <coolo@xxxxxxx>
  • Date: Sun, 9 Mar 2008 18:17:24 +0100
  • Message-id: <200803091817.25106.coolo@xxxxxxx>
Am Sonntag, 9. März 2008 schrieb Alvin:
Hello all,

I have written a MTP file browser of sorts,
http://users.eastlink.ca/~alvinbeach/flmtp/, and what I would like to do is
have KDE start the program when I attach the device. Is there someone in
KDE's settings or perhaps a daemon that I can configure that can do this?

I'm thinking of something like how when I attach a USB thumbdrive, a window
will open up to the thumbdrive.

I'm not sure if this is something that KDE can do or if I need to look into
something like udev (I'm guessing)? Has anyone done something like this
before?

I am using openSUSE 10.3 with KDE 3.5.9 release 51.2.


Hi,

You can check lshal --monitor to see what device is added if you attach it.
And then it's either something for the mediamanager/medianotifier (it needs
to supply a mimetype for this specific device - it has only one for MP3 player
and camera) or for suseplugger, which is SUSE specific

Greetings, Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-kde+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-kde+help@xxxxxxxxxxxx

< Previous Next >
This Thread
References