On Tue, Feb 21, 2012 at 04:49:34PM +0100, Petter Reinholdtsen wrote: > [Wolfgang Schweer] > > I'm not aware of a way to execute a script triggered by plugging in > > a device on the terminal - which is probably what your suggestion > > was. > > Ah, yes. Have a look at /etc/ltspfs/mounter.d/edu-notify for the > script that is executed on the LTSP server when a local media device > is mounted. :) > > Perhaps you can figure out a way to make it better? Not much. ======================================================================= --- edu-notify.orig 2012-02-15 15:00:20.000000000 +0100 +++ edu-notify 2012-02-21 18:29:37.711003655 +0100 @@ -11,4 +11,5 @@ if not pynotify.init("edu-notify"): sys.exit(1) n = pynotify.Notification("ltspfs","%s" % sys.argv[1]+' '+sys.argv[2]) +n.set_timeout(5000) #show notification for 5 seconds n.show() ======================================================================= So at least a user's got the chance to read where to search for. Using /usr/share/doc/ltspfs/examples/kde-desktop-icons it would be possible to show appropriate icons on the user's desktop - but in kde4 they would only appear if the user sets his desktop to folder view :( Wolfgang
Attachment:
signature.asc
Description: Digital signature