[Digikam-users] digikam hotplug and mandriva 2006

Oliver Dörr oliver at doerr-privat.de
Sun Oct 16 14:21:38 BST 2005


Franck Collineau wrote:
> I have modified usbcam as:
> # The script that starts the application, that should react on the camera
> apphotplug="/etc/udev/agent.d/usb/digikam-hotplug"
> digikamstarted="/etc/udev/agent.d/usb/digikam-already-started"
>
> and here are the outputs:
> Oct 16 14:10:07 localhost kernel: ohci_hcd 0000:00:02.1: wakeup
> Oct 16 14:10:08 localhost kernel: usb 2-3: new full speed USB device
> using ohci_hcd and address 8
> Oct 16 14:10:08 localhost [3] usbcam (0.3.3): ps -ef |grep startkde:
> franck    3878  3461  0 10:22 ?        00:00:00 /bin/sh /usr/bin/startkde!
> Oct 16 14:10:08 localhost [3] usbcam (0.3.3): Started for franck,
> action: add
> Oct 16 14:10:08 localhost [2] usbcam (0.3.3): /tmp/usbcam.lock detected,
> checking age of file!
> Oct 16 14:10:08 localhost [2] usbcam (0.3.3): /tmp/usbcam.lock is 117
> seconds old; removing it.
> Oct 16 14:10:08 localhost [1] usbcam (0.3.3): Can't find .
> Oct 16 14:10:08 localhost [3] usbcam (0.3.3): ps -ef |grep startkde:
> franck    3878  3461  0 10:22 ?        00:00:00 /bin/sh /usr/bin/startkde!
> Oct 16 14:10:08 localhost [3] usbcam (0.3.3): Started for franck,
> action: add
> Oct 16 14:10:08 localhost [3] usbcam (0.3.3): Creating lockfile
> /tmp/usbcam.lock.
> Oct 16 14:10:08 localhost [3] usbcam (0.3.3): USB device
> /proc/bus/usb/002/008 found trying to start
> /etc/udev/agent.d/usb/digikam-hotplug.
> Oct 16 14:10:08 localhost [3] usbcam (0.3.3): Starting digikam-hotplug
> for franck.
> Oct 16 14:10:08 localhost su(pam_unix)[7058]: session opened for user
> franck by (uid=0)
> Oct 16 14:10:08 localhost su(pam_unix)[7058]: session closed for user franck
> Franck
>   
ok, i 'll see that usbcam tries to start digikam-hotplug, but sadly 
there is no hint why it fails. So we should check that command. 
Basically it uses the following line to start it

su ${USER} --login -c ${apphotplug}


so please do the following
login into KDE as franck
open konsole
xhost +
su -
su franck --login -c /etc/udev/agent.d/usb/digikam-hotplug

and tell me what you'll get...

Oliver



More information about the Digikam-users mailing list