GTK as hotplug client



Well, I don't know what the exact denomination would be. Here's the
problem:

- I have a digital cam (simulating a USB-storage device).
- I wrote a simple script in Perl that mounts it, unloads the
  images, clears the images, then umounts. All on call from the
  usb-agent from hotplug. Works fine.

I'd like to have a more versatile program to start though, so I can ask
the user if he wants to delete the images or not, etc. I wanted to do this
in GTK, because perlTk is not available everywhere.

So. What's the problem? hotplug normally does not have the same screen
priviledges as the owner of the screen where the program should pop up.
What is the correct way to solve this? I can imagine that with the wave of
hotplugable devices, there should be some more elegant way than to enable
xhosts +.

TIA,
John



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]