- status: open --> closed
Today, I tried to write a small script. It should copy all
of the images to the harddrive and delete them from the
camera after copying as soon I plug the usbcam in.
Everything went fine while using shell programs like
gphoto2 and so on.
As the last action in the script, I tried to open the
newly created dir in konqueror. UNfortunately, I'm not
that familiar with shell scripting, and got a lot of
problems. Seems not to be that easy to start GUI
programs using the hotplug mechanism. It's a pity,
because /etc/hotplug/usb/usbcam already knew the
correct user.
So, wouldn't it be great if hotplug also would look into
the homedirectory of $CONSOLEOWNER and execute the
scripts which are put there in - let's say - a
subdirectory maybe called ~/.hotplug/usb/ ?
As one can read here:
http://bugs.kde.org/show_bug.cgi?id=59833
the KDE people also plan to better integrate hotplug
into the desktop. It would be great to have a easy to
use GUI where a user can put/choose the ID of a device
and select an action to be executed (shell scripts, or
starting digikam or camera:/ as soon as his or her
camera gets detected).
Any collaboration here would really make a lot of things
easier, especially cameras which can be accessed via
PTP instead of mounting it as a mass storage device.
But also pen drives, scanners and similar could be
possible candidates.