digikam hotplug and mandriva 2006

classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

digikam hotplug and mandriva 2006

Franck Collineau
Hello,

Digikam hotplug does not work anymore on mandriva 2006 here are the outputs:

Oct 15 17:38:26 localhost kernel: usb 2-3: new full speed USB device
using ohci_hcd and address 5
Oct 15 17:38:26 localhost [3] usbcam (0.3.1): Started, action: add
Oct 15 17:38:26 localhost [1] usbcam (0.3.1): Can't find .
Oct 15 17:38:26 localhost [3] usbcam (0.3.1): Started, action: add
Oct 15 17:38:26 localhost [3] usbcam (0.3.1): Creating lockfile
/tmp/usbcam.lock.
Oct 15 17:38:26 localhost [3] usbcam (0.3.1): USB device
/proc/bus/usb/002/005 found trying to start
/etc/hotplug/usb/digikam-hotplug.
Oct 15 17:38:26 localhost [2] usbcam (0.3.1): There seems to be no
desktop available, script will not be started!


Franck

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Oliver Dörr
Franck Collineau wrote:

> Hello,
>
> Digikam hotplug does not work anymore on mandriva 2006 here are the outputs:
>
> Oct 15 17:38:26 localhost kernel: usb 2-3: new full speed USB device
> using ohci_hcd and address 5
> Oct 15 17:38:26 localhost [3] usbcam (0.3.1): Started, action: add
> Oct 15 17:38:26 localhost [1] usbcam (0.3.1): Can't find .
> Oct 15 17:38:26 localhost [3] usbcam (0.3.1): Started, action: add
> Oct 15 17:38:26 localhost [3] usbcam (0.3.1): Creating lockfile
> /tmp/usbcam.lock.
> Oct 15 17:38:26 localhost [3] usbcam (0.3.1): USB device
> /proc/bus/usb/002/005 found trying to start
> /etc/hotplug/usb/digikam-hotplug.
> Oct 15 17:38:26 localhost [2] usbcam (0.3.1): There seems to be no
> desktop available, script will not be started!
>  
Ok,

it fails detecting a running KDE desktop. This is because later KDE
versions seems to have some processes renamed. I will try to send you an
actual version of the scripts today or tomorrow.

Oliver
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Oliver Dörr
Hi Franck,

could you try this version of the scripts?

For installation, xou'll have to copy them in the same directory like the old ones (usually /etc/hotplug/usb) and make links without version
ln -s digikam-hotplug.0.3.3 digikam-hotplug
ln -s digikam-already-started.0.3.3 digikam-already-started
ln -s usbcam.0.3.3 usbcam

Oliver


Oliver Dörr wrote:
Franck Collineau wrote:
  
Hello,

Digikam hotplug does not work anymore on mandriva 2006 here are the outputs:

Oct 15 17:38:26 localhost kernel: usb 2-3: new full speed USB device 
using ohci_hcd and address 5
Oct 15 17:38:26 localhost [3] usbcam (0.3.1): Started, action: add
Oct 15 17:38:26 localhost [1] usbcam (0.3.1): Can't find .
Oct 15 17:38:26 localhost [3] usbcam (0.3.1): Started, action: add
Oct 15 17:38:26 localhost [3] usbcam (0.3.1): Creating lockfile 
/tmp/usbcam.lock.
Oct 15 17:38:26 localhost [3] usbcam (0.3.1): USB device 
/proc/bus/usb/002/005 found trying to start 
/etc/hotplug/usb/digikam-hotplug.
Oct 15 17:38:26 localhost [2] usbcam (0.3.1): There seems to be no 
desktop available, script will not be started!
  
    
Ok,

it fails detecting a running KDE desktop. This is because later KDE 
versions seems to have some processes renamed. I will try to send you an 
actual version of the scripts today or tomorrow.

Oliver
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users

  

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users

hotplug.tar.gz (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Franck Collineau
Hello !

In mandriva there isn't /etc/hotplug/usb folder anymore.

I have copied the scripts in /etc/udev/agents.d/usb/

Here are the outputs with your new scripts:
Oct 16 10:30:50 localhost kernel: ohci_hcd 0000:00:02.1: wakeup
Oct 16 10:30:50 localhost kernel: usb 2-3: new full speed USB device
using ohci_hcd and address 3
Oct 16 10:30:50 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 10:30:50 localhost [3] usbcam (0.3.3): Started for franck,
action: add
Oct 16 10:30:50 localhost [2] usbcam (0.3.3): /tmp/usbcam.lock detected,
checking age of file!
Oct 16 10:30:50 localhost [2] usbcam (0.3.3): /tmp/usbcam.lock is 26
seconds old; exiting.
Oct 16 10:30:50 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 10:30:50 localhost [3] usbcam (0.3.3): Started for franck,
action: add
Oct 16 10:30:50 localhost [2] usbcam (0.3.3): /tmp/usbcam.lock detected,
checking age of file!
Oct 16 10:30:50 localhost [2] usbcam (0.3.3): /tmp/usbcam.lock is 26
seconds old; exiting.

Franck


Oliver Dörr wrote:

> Hi Franck,
>
> could you try this version of the scripts?
>
> For installation, xou'll have to copy them in the same directory like
> the old ones (usually /etc/hotplug/usb) and make links without version
> ln -s digikam-hotplug.0.3.3 digikam-hotplug
> ln -s digikam-already-started.0.3.3 digikam-already-started
> ln -s usbcam.0.3.3 usbcam
>
> Oliver
>
>
> Oliver Dörr wrote:
>
>>Franck Collineau wrote:
>>  
>>
>>>Hello,
>>>
>>>Digikam hotplug does not work anymore on mandriva 2006 here are the outputs:
>>>
>>>Oct 15 17:38:26 localhost kernel: usb 2-3: new full speed USB device
>>>using ohci_hcd and address 5
>>>Oct 15 17:38:26 localhost [3] usbcam (0.3.1): Started, action: add
>>>Oct 15 17:38:26 localhost [1] usbcam (0.3.1): Can't find .
>>>Oct 15 17:38:26 localhost [3] usbcam (0.3.1): Started, action: add
>>>Oct 15 17:38:26 localhost [3] usbcam (0.3.1): Creating lockfile
>>>/tmp/usbcam.lock.
>>>Oct 15 17:38:26 localhost [3] usbcam (0.3.1): USB device
>>>/proc/bus/usb/002/005 found trying to start
>>>/etc/hotplug/usb/digikam-hotplug.
>>>Oct 15 17:38:26 localhost [2] usbcam (0.3.1): There seems to be no
>>>desktop available, script will not be started!
>>>  
>>>    
>>>
>>Ok,
>>
>>it fails detecting a running KDE desktop. This is because later KDE
>>versions seems to have some processes renamed. I will try to send you an
>>actual version of the scripts today or tomorrow.
>>
>>Oliver
>>_______________________________________________
>>Digikam-users mailing list
>>[hidden email]
>>https://mail.kde.org/mailman/listinfo/digikam-users
>>
>>  
>>
>------------------------------------------------------------------------
>
>_______________________________________________
>Digikam-users mailing list
>[hidden email]
>https://mail.kde.org/mailman/listinfo/digikam
>  
>

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Oliver Dörr
Franck Collineau wrote:

> Hello !
>
> In mandriva there isn't /etc/hotplug/usb folder anymore.
>
> I have copied the scripts in /etc/udev/agents.d/usb/
>
> Here are the outputs with your new scripts:
> Oct 16 10:30:50 localhost kernel: ohci_hcd 0000:00:02.1: wakeup
> Oct 16 10:30:50 localhost kernel: usb 2-3: new full speed USB device
> using ohci_hcd and address 3
> Oct 16 10:30:50 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 10:30:50 localhost [3] usbcam (0.3.3): Started for franck,
> action: add
> Oct 16 10:30:50 localhost [2] usbcam (0.3.3): /tmp/usbcam.lock detected,
> checking age of file!
> Oct 16 10:30:50 localhost [2] usbcam (0.3.3): /tmp/usbcam.lock is 26
> seconds old; exiting.
> Oct 16 10:30:50 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 10:30:50 localhost [3] usbcam (0.3.3): Started for franck,
> action: add
> Oct 16 10:30:50 localhost [2] usbcam (0.3.3): /tmp/usbcam.lock detected,
> checking age of file!
> Oct 16 10:30:50 localhost [2] usbcam (0.3.3): /tmp/usbcam.lock is 26
> seconds old; exiting.
>  
Hi Franck,

there seems to be an old version of

/tmp/usbcam.lock is 26
seconds old; exiting.

So could you delete the file manually, test it again and send me the
whole output of the logging. I'm especially interested of the beginning,
if it does not work.

Oliver
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Franck Collineau
Hello !

It doesn't work:
Oct 16 12:51:01 localhost kernel: usb 2-3: new full speed USB device
using ohci_hcd and address 6
Oct 16 12:51:01 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 12:51:01 localhost [3] usbcam (0.3.3): Started for franck,
action: add
Oct 16 12:51:01 localhost [1] usbcam (0.3.3): Can't find .
Oct 16 12:51:01 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 12:51:01 localhost [3] usbcam (0.3.3): Started for franck,
action: add
Oct 16 12:51:01 localhost [3] usbcam (0.3.3): Creating lockfile
/tmp/usbcam.lock.
Oct 16 12:51:01 localhost [3] usbcam (0.3.3): USB device
/proc/bus/usb/002/006 found trying to start
/etc/hotplug/usb/digikam-hotplug.
Oct 16 12:51:01 localhost [3] usbcam (0.3.3): Starting digikam-hotplug
for franck.
Oct 16 12:51:01 localhost su(pam_unix)[6573]: session opened for user
franck by (uid=0)
Oct 16 12:51:01 localhost su(pam_unix)[6573]: session closed for user franck

Franck

Oliver Dörr wrote:

>Franck Collineau wrote:
>  
>
>>Hello !
>>
>>In mandriva there isn't /etc/hotplug/usb folder anymore.
>>
>>I have copied the scripts in /etc/udev/agents.d/usb/
>>
>>Here are the outputs with your new scripts:
>>Oct 16 10:30:50 localhost kernel: ohci_hcd 0000:00:02.1: wakeup
>>Oct 16 10:30:50 localhost kernel: usb 2-3: new full speed USB device
>>using ohci_hcd and address 3
>>Oct 16 10:30:50 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 10:30:50 localhost [3] usbcam (0.3.3): Started for franck,
>>action: add
>>Oct 16 10:30:50 localhost [2] usbcam (0.3.3): /tmp/usbcam.lock detected,
>>checking age of file!
>>Oct 16 10:30:50 localhost [2] usbcam (0.3.3): /tmp/usbcam.lock is 26
>>seconds old; exiting.
>>Oct 16 10:30:50 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 10:30:50 localhost [3] usbcam (0.3.3): Started for franck,
>>action: add
>>Oct 16 10:30:50 localhost [2] usbcam (0.3.3): /tmp/usbcam.lock detected,
>>checking age of file!
>>Oct 16 10:30:50 localhost [2] usbcam (0.3.3): /tmp/usbcam.lock is 26
>>seconds old; exiting.
>>  
>>    
>>
>Hi Franck,
>
>there seems to be an old version of
>
>/tmp/usbcam.lock is 26
>seconds old; exiting.
>
>So could you delete the file manually, test it again and send me the
>whole output of the logging. I'm especially interested of the beginning,
>if it does not work.
>
>Oliver
>_______________________________________________
>Digikam-users mailing list
>[hidden email]
>https://mail.kde.org/mailman/listinfo/digikam-users
>
>
>  
>


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Oliver Dörr
Franck Collineau wrote:
Hello !

It doesn't work:
Oct 16 12:51:01 localhost kernel: usb 2-3: new full speed USB device
using ohci_hcd and address 6
Oct 16 12:51:01 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 12:51:01 localhost [3] usbcam (0.3.3): Started for franck,
action: add
Oct 16 12:51:01 localhost [1] usbcam (0.3.3): Can't find .
Oct 16 12:51:01 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 12:51:01 localhost [3] usbcam (0.3.3): Started for franck,
action: add
Oct 16 12:51:01 localhost [3] usbcam (0.3.3): Creating lockfile
/tmp/usbcam.lock.
Oct 16 12:51:01 localhost [3] usbcam (0.3.3): USB device
/proc/bus/usb/002/006 found trying to start
/etc/hotplug/usb/digikam-hotplug.
Oct 16 12:51:01 localhost [3] usbcam (0.3.3): Starting digikam-hotplug
for franck.
Oct 16 12:51:01 localhost su(pam_unix)[6573]: session opened for user
franck by (uid=0)
Oct 16 12:51:01 localhost su(pam_unix)[6573]: session closed for user franck

Franck

Oliver D�rr wrote:

  
Franck Collineau wrote:
 

    
Hello !
; exiting.
      
ok,

i see a possible reason. As you told me you've placed the scripts in
/etc/udev/agents.d/usb/
but the startup scripts tries to start digiKam with the starter script using
/etc/hotplug/usb/digikam-hotplug

So this has naturally to fail. I will send you a new version of the scripts within the next 1-2� hours.

Oliver

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Franck Collineau
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

Oliver Dörr wrote:

> Franck Collineau wrote:
>
>>Hello !
>>
>>It doesn't work:
>>Oct 16 12:51:01 localhost kernel: usb 2-3: new full speed USB device
>>using ohci_hcd and address 6
>>Oct 16 12:51:01 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 12:51:01 localhost [3] usbcam (0.3.3): Started for franck,
>>action: add
>>Oct 16 12:51:01 localhost [1] usbcam (0.3.3): Can't find .
>>Oct 16 12:51:01 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 12:51:01 localhost [3] usbcam (0.3.3): Started for franck,
>>action: add
>>Oct 16 12:51:01 localhost [3] usbcam (0.3.3): Creating lockfile
>>/tmp/usbcam.lock.
>>Oct 16 12:51:01 localhost [3] usbcam (0.3.3): USB device
>>/proc/bus/usb/002/006 found trying to start
>>/etc/hotplug/usb/digikam-hotplug.
>>Oct 16 12:51:01 localhost [3] usbcam (0.3.3): Starting digikam-hotplug
>>for franck.
>>Oct 16 12:51:01 localhost su(pam_unix)[6573]: session opened for user
>>franck by (uid=0)
>>Oct 16 12:51:01 localhost su(pam_unix)[6573]: session closed for user franck
>>
>>Franck
>>
>>Oliver Dörr wrote:
>>
>>  
>>
>>>Franck Collineau wrote:
>>>
>>>
>>>    
>>>
>>>>Hello !
>>>>; exiting.
>>>>      
>>>>
> ok,
>
> i see a possible reason. As you told me you've placed the scripts in
>
>/etc/udev/agents.d/usb/
>
> but the startup scripts tries to start digiKam with the starter script
> using
>
>/etc/hotplug/usb/digikam-hotplug
>  
>
>
> So this has naturally to fail. I will send you a new version of the
> scripts within the next 1-2  hours.
>
> Oliver
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Digikam-users mailing list
>[hidden email]
>https://mail.kde.org/mailman/listinfo/digikam-users
>  
>


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Oliver Dörr
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
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Oliver Dörr
Oliver Dörr wrote:
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...
  
upps forgot one step

login into KDE as franck
open konsole
xhost +
su -
export DISPLAY=:0
su franck --login -c /etc/udev/agent.d/usb/digikam-hotplug


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Franck Collineau
[franck@localhost ~]$ xhost +
access control disabled, clients can connect from any host
[franck@localhost ~]$ su -
Password:
[root@localhost ~]# export DISPLAY=:0
[root@localhost ~]# su franck --login -c
/etc/udev/agent.d/usb/digikam-hotplug
-bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou
répertoire de ce type

Last line: no such file or folder

Franck

Oliver Dörr wrote:

> Oliver Dörr wrote:
>
>>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...
>>  
>>
> upps forgot one step
>
>login into KDE as franck
>open konsole
>xhost +
>su -
>export DISPLAY=:0
>su franck --login -c /etc/udev/agent.d/usb/digikam-hotplug
>  
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Digikam-users mailing list
>[hidden email]
>https://mail.kde.org/mailman/listinfo/digikam-users
>  
>


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Oliver Dörr
Franck Collineau wrote:

> [franck@localhost ~]$ xhost +
> access control disabled, clients can connect from any host
> [franck@localhost ~]$ su -
> Password:
> [root@localhost ~]# export DISPLAY=:0
> [root@localhost ~]# su franck --login -c
> /etc/udev/agent.d/usb/digikam-hotplug
> -bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou
> répertoire de ce type
>
> Last line: no such file or folder
>  
No such file or folder? Could you verify that the script is there?
Additional i am interested in the output of the command

which perl

Oliver
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Franck Collineau

All scripts are here !:

ll /etc/udev/agents.d/usb/
total 8
lrwxrwxrwx  1 root root   65 oct 16 10:29 digikam-already-started ->
/donnees/my-etc/hotplug-usb/hotplug/digikam-already-started.0.3.3*
lrwxrwxrwx  1 root root   57 oct 16 10:28 digikam-hotplug ->
/donnees/my-etc/hotplug-usb/hotplug/digikam-hotplug.0.3.3*
-rwxr-xr-x  1 root root 1036 sep  2 02:31 libusbscanner*
lrwxrwxrwx  1 root root   48 oct 16 10:30 usbcam ->
/donnees/my-etc/hotplug-usb/hotplug/usbcam.0.3.3*
-rwxr-xr-x  1 root root 1954 sep  7 13:52 usbcam.ori*
[root@localhost usb]#                      

*****************************************
[root@localhost usb]# export DISPLAY=:0
[root@localhost usb]# su franck --login -c
/etc/udev/agent.d/usb/digikam-hotplug
-bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou
répertoire de ce type

*****************************
perl -v

This is perl, v5.8.7 built for i386-linux
(with 1 registered patch, see perl -V for more detail)

Franck

Oliver Dörr wrote:

>Franck Collineau wrote:
>  
>
>>[franck@localhost ~]$ xhost +
>>access control disabled, clients can connect from any host
>>[franck@localhost ~]$ su -
>>Password:
>>[root@localhost ~]# export DISPLAY=:0
>>[root@localhost ~]# su franck --login -c
>>/etc/udev/agent.d/usb/digikam-hotplug
>>-bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou
>>répertoire de ce type
>>
>>Last line: no such file or folder
>>  
>>    
>>
>No such file or folder? Could you verify that the script is there?
>Additional i am interested in the output of the command
>
>which perl
>
>Oliver
>_______________________________________________
>Digikam-users mailing list
>[hidden email]
>https://mail.kde.org/mailman/listinfo/digikam-users
>
>
>  
>


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Duncan Hill-5
In reply to this post by Franck Collineau
On Sunday 16 October 2005 14:25, Franck Collineau wrote:

> -bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou

> ll /etc/udev/agents.d/usb/

agent.d != agentS.d
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Oliver Dörr
In reply to this post by Franck Collineau
Franck Collineau wrote:

> All scripts are here !:
>
> ll /etc/udev/agents.d/usb/
> total 8
> lrwxrwxrwx  1 root root   65 oct 16 10:29 digikam-already-started ->
> /donnees/my-etc/hotplug-usb/hotplug/digikam-already-started.0.3.3*
> lrwxrwxrwx  1 root root   57 oct 16 10:28 digikam-hotplug ->
> /donnees/my-etc/hotplug-usb/hotplug/digikam-hotplug.0.3.3*
> -rwxr-xr-x  1 root root 1036 sep  2 02:31 libusbscanner*
> lrwxrwxrwx  1 root root   48 oct 16 10:30 usbcam ->
> /donnees/my-etc/hotplug-usb/hotplug/usbcam.0.3.3*
> -rwxr-xr-x  1 root root 1954 sep  7 13:52 usbcam.ori*
> [root@localhost usb]#                      
>
> *****************************************
> [root@localhost usb]# export DISPLAY=:0
> [root@localhost usb]# su franck --login -c
> /etc/udev/agent.d/usb/digikam-hotplug
> -bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou
> répertoire de ce type
>
> *****************************
> perl -v
>
> This is perl, v5.8.7 built for i386-linux
> (with 1 registered patch, see perl -V for more detail)
>  
ok,

i forgot to send you a perl module that i have written. Give me 30
minutes to send it to you

Sorry
Oliver
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Oliver Dörr
In reply to this post by Franck Collineau
Hi Franck,

please try this version (it's especially for you ;-)

Notice that you have to rename/link the perl module to digikamhotplug.pm and copy it to somepoalce where perl could find it.

Oliver

Franck Collineau wrote:
All scripts are here !:

ll /etc/udev/agents.d/usb/
total 8
lrwxrwxrwx  1 root root   65 oct 16 10:29 digikam-already-started ->
/donnees/my-etc/hotplug-usb/hotplug/digikam-already-started.0.3.3*
lrwxrwxrwx  1 root root   57 oct 16 10:28 digikam-hotplug ->
/donnees/my-etc/hotplug-usb/hotplug/digikam-hotplug.0.3.3*
-rwxr-xr-x  1 root root 1036 sep  2 02:31 libusbscanner*
lrwxrwxrwx  1 root root   48 oct 16 10:30 usbcam ->
/donnees/my-etc/hotplug-usb/hotplug/usbcam.0.3.3*
-rwxr-xr-x  1 root root 1954 sep  7 13:52 usbcam.ori*
[root@localhost usb]#                      

*****************************************
[root@localhost usb]# export DISPLAY=:0
[root@localhost usb]# su franck --login -c
/etc/udev/agent.d/usb/digikam-hotplug
-bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou
répertoire de ce type

*****************************
perl -v

This is perl, v5.8.7 built for i386-linux
(with 1 registered patch, see perl -V for more detail)

Franck

Oliver Dörr wrote:

  
Franck Collineau wrote:
 

    
[franck@localhost ~]$ xhost +
access control disabled, clients can connect from any host
[franck@localhost ~]$ su -
Password:
[root@localhost ~]# export DISPLAY=:0
[root@localhost ~]# su franck --login -c
/etc/udev/agent.d/usb/digikam-hotplug
-bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou
répertoire de ce type

Last line: no such file or folder
 
   

      
No such file or folder? Could you verify that the script is there? 
Additional i am interested in the output of the command

which perl

Oliver
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users


 

    


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users

  

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users

hotplug.tar.gz (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Franck Collineau
Hi Oliver,

Where do I have to copy perl module ?

Franck

Oliver Dörr wrote:

> Hi Franck,
>
> please try this version (it's especially for you ;-)
>
> Notice that you have to rename/link the perl module to
> digikamhotplug.pm and copy it to somepoalce where perl could find it.
>
> Oliver
>
> Franck Collineau wrote:
>
>>All scripts are here !:
>>
>>ll /etc/udev/agents.d/usb/
>>total 8
>>lrwxrwxrwx  1 root root   65 oct 16 10:29 digikam-already-started ->
>>/donnees/my-etc/hotplug-usb/hotplug/digikam-already-started.0.3.3*
>>lrwxrwxrwx  1 root root   57 oct 16 10:28 digikam-hotplug ->
>>/donnees/my-etc/hotplug-usb/hotplug/digikam-hotplug.0.3.3*
>>-rwxr-xr-x  1 root root 1036 sep  2 02:31 libusbscanner*
>>lrwxrwxrwx  1 root root   48 oct 16 10:30 usbcam ->
>>/donnees/my-etc/hotplug-usb/hotplug/usbcam.0.3.3*
>>-rwxr-xr-x  1 root root 1954 sep  7 13:52 usbcam.ori*
>>[root@localhost usb]#                      
>>
>>*****************************************
>>[root@localhost usb]# export DISPLAY=:0
>>[root@localhost usb]# su franck --login -c
>>/etc/udev/agent.d/usb/digikam-hotplug
>>-bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou
>>répertoire de ce type
>>
>>*****************************
>>perl -v
>>
>>This is perl, v5.8.7 built for i386-linux
>>(with 1 registered patch, see perl -V for more detail)
>>
>>Franck
>>
>>Oliver Dörr wrote:
>>
>>  
>>
>>>Franck Collineau wrote:
>>>
>>>
>>>    
>>>
>>>>[franck@localhost ~]$ xhost +
>>>>access control disabled, clients can connect from any host
>>>>[franck@localhost ~]$ su -
>>>>Password:
>>>>[root@localhost ~]# export DISPLAY=:0
>>>>[root@localhost ~]# su franck --login -c
>>>>/etc/udev/agent.d/usb/digikam-hotplug
>>>>-bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou
>>>>répertoire de ce type
>>>>
>>>>Last line: no such file or folder
>>>>
>>>>  
>>>>
>>>>      
>>>>
>>>No such file or folder? Could you verify that the script is there?
>>>Additional i am interested in the output of the command
>>>
>>>which perl
>>>
>>>Oliver
>>>_______________________________________________
>>>Digikam-users mailing list
>>>[hidden email]
>>>https://mail.kde.org/mailman/listinfo/digikam-users
>>>
>>>
>>>
>>>
>>>    
>>>
>>
>>
>>_______________________________________________
>>Digikam-users mailing list
>>[hidden email]
>>https://mail.kde.org/mailman/listinfo/digikam-users
>>
>>  
>>
>------------------------------------------------------------------------
>
>_______________________________________________
>Digikam-users mailing list
>[hidden email]
>https://mail.kde.org/mailman/listinfo/digikam-users
>  
>


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Oliver Dörr
Hi Franck,

it depends on your installation. the easiest way to find it out is to simply start one of the two Perl programs manually. You will get an error message the Perl module could not be found and it will tell you where it has looked. Simply copy the .pm into one of those directories.

Oliver

Franck Collineau wrote:
Hi Oliver,

Where do I have to copy perl module ?

Franck

Oliver Dörr wrote:

  
Hi Franck,

please try this version (it's especially for you ;-)

Notice that you have to rename/link the perl module to
digikamhotplug.pm and copy it to somepoalce where perl could find it.

Oliver

Franck Collineau wrote:

    
All scripts are here !:

ll /etc/udev/agents.d/usb/
total 8
lrwxrwxrwx  1 root root   65 oct 16 10:29 digikam-already-started ->
/donnees/my-etc/hotplug-usb/hotplug/digikam-already-started.0.3.3*
lrwxrwxrwx  1 root root   57 oct 16 10:28 digikam-hotplug ->
/donnees/my-etc/hotplug-usb/hotplug/digikam-hotplug.0.3.3*
-rwxr-xr-x  1 root root 1036 sep  2 02:31 libusbscanner*
lrwxrwxrwx  1 root root   48 oct 16 10:30 usbcam ->
/donnees/my-etc/hotplug-usb/hotplug/usbcam.0.3.3*
-rwxr-xr-x  1 root root 1954 sep  7 13:52 usbcam.ori*
[root@localhost usb]#                      

*****************************************
[root@localhost usb]# export DISPLAY=:0
[root@localhost usb]# su franck --login -c
/etc/udev/agent.d/usb/digikam-hotplug
-bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou
répertoire de ce type

*****************************
perl -v

This is perl, v5.8.7 built for i386-linux
(with 1 registered patch, see perl -V for more detail)

Franck

Oliver Dörr wrote:

 

      
Franck Collineau wrote:


   

        
[franck@localhost ~]$ xhost +
access control disabled, clients can connect from any host
[franck@localhost ~]$ su -
Password:
[root@localhost ~]# export DISPLAY=:0
[root@localhost ~]# su franck --login -c
/etc/udev/agent.d/usb/digikam-hotplug
-bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou
répertoire de ce type

Last line: no such file or folder

  

     

          
No such file or folder? Could you verify that the script is there? 
Additional i am interested in the output of the command

which perl

Oliver
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users




   

        
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users

 

      
------------------------------------------------------------------------

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
 

    


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users


  


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Franck Collineau
Oliver,

I am not sure I have understood what I must do with the perl module.
So here my /etc/udev/agents.d/usb
rwxrwxrwx  1 root root   69 oct 19 15:44 digikam-already-started ->
/home/franck/Desktop/hotplugbis/hotplug/digikam-already-started.0.3.3*
lrwxrwxrwx  1 root root   68 oct 19 15:46 digikam-already-started.i10n
-> /home/franck/Desktop/hotplugbis/hotplug/digikam-already-started.i10n
lrwxrwxrwx  1 root root   61 oct 19 15:45 digikam-hotplug ->
/home/franck/Desktop/hotplugbis/hotplug/digikam-hotplug.0.3.3*
lrwxrwxrwx  1 root root   63 oct 19 15:45 digikamhotplug.pm ->
/home/franck/Desktop/hotplugbis/hotplug/digikamhotplug.pm.0.3.3
lrwxrwxrwx  1 root root   52 oct 19 15:44 usbcam ->
/home/franck/Desktop/hotplugbis/hotplug/usbcam.0.3.3*

And the messages outputs:
Oct 19 15:48:44 localhost kernel: ohci_hcd 0000:00:02.1: wakeup
Oct 19 15:48:45 localhost kernel: usb 2-3: new full speed USB device
using ohci_hcd and address 3
Oct 19 15:48:45 localhost [3] usbcam (0.3.3fc1): ps -ef |grep startkde:
franck    5513  5095  0 15:37 ?        00:00:00 /bin/sh /usr/bin/startkde!
Oct 19 15:48:45 localhost [3] usbcam (0.3.3fc1): Started for franck,
action: add
Oct 19 15:48:45 localhost [2] usbcam (0.3.3fc1): /tmp/usbcam.lock
detected, checking age of file!
Oct 19 15:48:45 localhost [2] usbcam (0.3.3fc1): /tmp/usbcam.lock is 140
seconds old; removing it.
Oct 19 15:48:45 localhost [1] usbcam (0.3.3fc1): Can't find .
Oct 19 15:48:45 localhost [3] usbcam (0.3.3fc1): ps -ef |grep startkde:
franck    5513  5095  0 15:37 ?        00:00:00 /bin/sh /usr/bin/startkde!
Oct 19 15:48:45 localhost [3] usbcam (0.3.3fc1): Started for franck,
action: add
Oct 19 15:48:45 localhost [3] usbcam (0.3.3fc1): Creating lockfile
/tmp/usbcam.lock.
Oct 19 15:48:45 localhost [3] usbcam (0.3.3fc1): USB device
/proc/bus/usb/002/003 found trying to start
/etc/udev/agents.d/usb/digikam-hotplug.
Oct 19 15:48:45 localhost [3] usbcam (0.3.3fc1): Starting
digikam-hotplug for franck.
Oct 19 15:48:45 localhost su(pam_unix)[6427]: session opened for user
franck by (uid=0)
Oct 19 15:48:45 localhost su(pam_unix)[6427]: session closed for user franck


Franck

Oliver Dörr wrote:

> Hi Franck,
>
> it depends on your installation. the easiest way to find it out is to
> simply start one of the two Perl programs manually. You will get an
> error message the Perl module could not be found and it will tell you
> where it has looked. Simply copy the .pm into one of those directories.
>
> Oliver
>
> Franck Collineau wrote:
>
>>Hi Oliver,
>>
>>Where do I have to copy perl module ?
>>
>>Franck
>>
>>Oliver Dörr wrote:
>>
>>  
>>
>>>Hi Franck,
>>>
>>>please try this version (it's especially for you ;-)
>>>
>>>Notice that you have to rename/link the perl module to
>>>digikamhotplug.pm and copy it to somepoalce where perl could find it.
>>>
>>>Oliver
>>>
>>>Franck Collineau wrote:
>>>
>>>    
>>>
>>>>All scripts are here !:
>>>>
>>>>ll /etc/udev/agents.d/usb/
>>>>total 8
>>>>lrwxrwxrwx  1 root root   65 oct 16 10:29 digikam-already-started ->
>>>>/donnees/my-etc/hotplug-usb/hotplug/digikam-already-started.0.3.3*
>>>>lrwxrwxrwx  1 root root   57 oct 16 10:28 digikam-hotplug ->
>>>>/donnees/my-etc/hotplug-usb/hotplug/digikam-hotplug.0.3.3*
>>>>-rwxr-xr-x  1 root root 1036 sep  2 02:31 libusbscanner*
>>>>lrwxrwxrwx  1 root root   48 oct 16 10:30 usbcam ->
>>>>/donnees/my-etc/hotplug-usb/hotplug/usbcam.0.3.3*
>>>>-rwxr-xr-x  1 root root 1954 sep  7 13:52 usbcam.ori*
>>>>[root@localhost usb]#                      
>>>>
>>>>*****************************************
>>>>[root@localhost usb]# export DISPLAY=:0
>>>>[root@localhost usb]# su franck --login -c
>>>>/etc/udev/agent.d/usb/digikam-hotplug
>>>>-bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou
>>>>répertoire de ce type
>>>>
>>>>*****************************
>>>>perl -v
>>>>
>>>>This is perl, v5.8.7 built for i386-linux
>>>>(with 1 registered patch, see perl -V for more detail)
>>>>
>>>>Franck
>>>>
>>>>Oliver Dörr wrote:
>>>>
>>>>
>>>>
>>>>      
>>>>
>>>>>Franck Collineau wrote:
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>>        
>>>>>
>>>>>>[franck@localhost ~]$ xhost +
>>>>>>access control disabled, clients can connect from any host
>>>>>>[franck@localhost ~]$ su -
>>>>>>Password:
>>>>>>[root@localhost ~]# export DISPLAY=:0
>>>>>>[root@localhost ~]# su franck --login -c
>>>>>>/etc/udev/agent.d/usb/digikam-hotplug
>>>>>>-bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou
>>>>>>répertoire de ce type
>>>>>>
>>>>>>Last line: no such file or folder
>>>>>>
>>>>>>  
>>>>>>
>>>>>>    
>>>>>>
>>>>>>          
>>>>>>
>>>>>No such file or folder? Could you verify that the script is there?
>>>>>Additional i am interested in the output of the command
>>>>>
>>>>>which perl
>>>>>
>>>>>Oliver
>>>>>_______________________________________________
>>>>>Digikam-users mailing list
>>>>>[hidden email]
>>>>>https://mail.kde.org/mailman/listinfo/digikam-users
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>>        
>>>>>
>>>>_______________________________________________
>>>>Digikam-users mailing list
>>>>[hidden email]
>>>>https://mail.kde.org/mailman/listinfo/digikam-users
>>>>
>>>>
>>>>
>>>>      
>>>>
>>>------------------------------------------------------------------------
>>>
>>>_______________________________________________
>>>Digikam-users mailing list
>>>[hidden email]
>>>https://mail.kde.org/mailman/listinfo/digikam-users
>>>
>>>
>>>    
>>>
>>
>>
>>_______________________________________________
>>Digikam-users mailing list
>>[hidden email]
>>https://mail.kde.org/mailman/listinfo/digikam-users
>>
>>
>>  
>>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Digikam-users mailing list
>[hidden email]
>https://mail.kde.org/mailman/listinfo/digikam-users
>  
>


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: digikam hotplug and mandriva 2006

Oliver Dörr
Hi Franck,

let try to explain it more detailed. The Perl module is a library that my two Perl scripts are using, so that they could share code. Installing this module means simply copying it into a place where Perl could find it. I don't know how Perl is installed an configured for Mandriva, but there is a simple trick to find it out.

Simply log yourself on your system as user "franck" and start digikam-hotplug

You will get an error message telling you that it could not find digikamhotplug.pm and in which directories it has searched. If you can't understand the output. send it to me.

Oliver

Franck Collineau wrote:
Oliver,

I am not sure I have understood what I must do with the perl module.
So here my /etc/udev/agents.d/usb
rwxrwxrwx  1 root root   69 oct 19 15:44 digikam-already-started ->
/home/franck/Desktop/hotplugbis/hotplug/digikam-already-started.0.3.3*
lrwxrwxrwx  1 root root   68 oct 19 15:46 digikam-already-started.i10n
-> /home/franck/Desktop/hotplugbis/hotplug/digikam-already-started.i10n
lrwxrwxrwx  1 root root   61 oct 19 15:45 digikam-hotplug ->
/home/franck/Desktop/hotplugbis/hotplug/digikam-hotplug.0.3.3*
lrwxrwxrwx  1 root root   63 oct 19 15:45 digikamhotplug.pm ->
/home/franck/Desktop/hotplugbis/hotplug/digikamhotplug.pm.0.3.3
lrwxrwxrwx  1 root root   52 oct 19 15:44 usbcam ->
/home/franck/Desktop/hotplugbis/hotplug/usbcam.0.3.3*

And the messages outputs:
Oct 19 15:48:44 localhost kernel: ohci_hcd 0000:00:02.1: wakeup
Oct 19 15:48:45 localhost kernel: usb 2-3: new full speed USB device
using ohci_hcd and address 3
Oct 19 15:48:45 localhost [3] usbcam (0.3.3fc1): ps -ef |grep startkde:
franck    5513  5095  0 15:37 ?        00:00:00 /bin/sh /usr/bin/startkde!
Oct 19 15:48:45 localhost [3] usbcam (0.3.3fc1): Started for franck,
action: add
Oct 19 15:48:45 localhost [2] usbcam (0.3.3fc1): /tmp/usbcam.lock
detected, checking age of file!
Oct 19 15:48:45 localhost [2] usbcam (0.3.3fc1): /tmp/usbcam.lock is 140
seconds old; removing it.
Oct 19 15:48:45 localhost [1] usbcam (0.3.3fc1): Can't find .
Oct 19 15:48:45 localhost [3] usbcam (0.3.3fc1): ps -ef |grep startkde:
franck    5513  5095  0 15:37 ?        00:00:00 /bin/sh /usr/bin/startkde!
Oct 19 15:48:45 localhost [3] usbcam (0.3.3fc1): Started for franck,
action: add
Oct 19 15:48:45 localhost [3] usbcam (0.3.3fc1): Creating lockfile
/tmp/usbcam.lock.
Oct 19 15:48:45 localhost [3] usbcam (0.3.3fc1): USB device
/proc/bus/usb/002/003 found trying to start
/etc/udev/agents.d/usb/digikam-hotplug.
Oct 19 15:48:45 localhost [3] usbcam (0.3.3fc1): Starting
digikam-hotplug for franck.
Oct 19 15:48:45 localhost su(pam_unix)[6427]: session opened for user
franck by (uid=0)
Oct 19 15:48:45 localhost su(pam_unix)[6427]: session closed for user franck


Franck

Oliver Dörr wrote:

  
Hi Franck,

it depends on your installation. the easiest way to find it out is to
simply start one of the two Perl programs manually. You will get an
error message the Perl module could not be found and it will tell you
where it has looked. Simply copy the .pm into one of those directories.

Oliver

Franck Collineau wrote:

    
Hi Oliver,

Where do I have to copy perl module ?

Franck

Oliver Dörr wrote:

 

      
Hi Franck,

please try this version (it's especially for you ;-)

Notice that you have to rename/link the perl module to
digikamhotplug.pm and copy it to somepoalce where perl could find it.

Oliver

Franck Collineau wrote:

   

        
All scripts are here !:

ll /etc/udev/agents.d/usb/
total 8
lrwxrwxrwx  1 root root   65 oct 16 10:29 digikam-already-started ->
/donnees/my-etc/hotplug-usb/hotplug/digikam-already-started.0.3.3*
lrwxrwxrwx  1 root root   57 oct 16 10:28 digikam-hotplug ->
/donnees/my-etc/hotplug-usb/hotplug/digikam-hotplug.0.3.3*
-rwxr-xr-x  1 root root 1036 sep  2 02:31 libusbscanner*
lrwxrwxrwx  1 root root   48 oct 16 10:30 usbcam ->
/donnees/my-etc/hotplug-usb/hotplug/usbcam.0.3.3*
-rwxr-xr-x  1 root root 1954 sep  7 13:52 usbcam.ori*
[root@localhost usb]#                      

*****************************************
[root@localhost usb]# export DISPLAY=:0
[root@localhost usb]# su franck --login -c
/etc/udev/agent.d/usb/digikam-hotplug
-bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou
répertoire de ce type

*****************************
perl -v

This is perl, v5.8.7 built for i386-linux
(with 1 registered patch, see perl -V for more detail)

Franck

Oliver Dörr wrote:



     

          
Franck Collineau wrote:


  

       

            
[franck@localhost ~]$ xhost +
access control disabled, clients can connect from any host
[franck@localhost ~]$ su -
Password:
[root@localhost ~]# export DISPLAY=:0
[root@localhost ~]# su franck --login -c
/etc/udev/agent.d/usb/digikam-hotplug
-bash: /etc/udev/agent.d/usb/digikam-hotplug: Aucun fichier ou
répertoire de ce type

Last line: no such file or folder

 

    

         

              
No such file or folder? Could you verify that the script is there? 
Additional i am interested in the output of the command

which perl

Oliver
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users




  

       

            
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users



     

          
------------------------------------------------------------------------

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users


   

        
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users


 

      
------------------------------------------------------------------------

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
 

    


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users


  

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
12