Am 02.06.2013 17:57, schrieb Galina Sato: > Am Sun, 2 Jun 2013 17:33:59 +0200 > schrieb Sven Hartge <sven@svenhartge.de>: > > >> udev arbeitet als root, das Script wird daher als root gestartet, hat >> aber keinen Zugang zu deiner graphischen Oberfläche. Insoweit >> funktioniert das, was du vorhast, so nicht. > > > Das habe ich befürchtet :-.) > > Ich habe auch schon herumexperimentiert mit "su galina" innerhalb des > Scripts, aber da funktioniert offensichtlich auch nicht - oder > scheitert an meinen fehlenden Kenntnissen. > > Dann wird mir wohl nichts anderes übrig bleiben, als auf Zenity zu > verzichten :-) Du solltest generell keine lang laufenden Task via RUN rules starten. Dafür wurde dieser Mechanismus nicht konzipiert. Schon gar nicht X11 Programme. Siehe auch die entsprechende udev man page dazu: RUN{type} Add a program to the list of programs to be executed after processing all the rules for a specific event, depending on type: program Execute an external program specified as the assigned value. If no absolute path is given, the program is expected to live in /usr/lib/udev, otherwise the absolute path must be specified. This is the default if no type is specified. builtin As program, but use one of the built-in programs rather than an external one. The program name and following arguments are separated by spaces. Single quotes can be used to specify arguments with spaces. This can only be used for very short-running foreground tasks. Running an event process for a long period of time may block all further events for this or a dependent device. Starting daemons or other long running processes is not appropriate for udev; the forked processes, detached or not, will be unconditionally killed after the event handling has finished. -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
Attachment:
signature.asc
Description: OpenPGP digital signature