Bug 130755
Summary: | gtkam requires root privileges | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | kaye gee <newsmailer> | ||||||||
Component: | gphoto2 | Assignee: | Tim Waugh <twaugh> | ||||||||
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 3 | CC: | davidz, twaugh | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | i686 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | 2.1.4-6 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2004-08-31 16:56:39 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | |||||||||||
Bug Blocks: | 123268 | ||||||||||
Attachments: |
|
Description
kaye gee
2004-08-24 13:01:31 UTC
This is not a gtkam problem but one of device permissions. Which device node does gtkam use for that camera? If you aren't sure, you can use 'strace -eopen gtkam 2>log' as root to find out. Created attachment 103025 [details]
Output from strace to detect device
Okay, it's a USB device. Please try this: Unplug your camera Log on as your own (non-root) user Insert your camera Try gtkam Does that work properly? No the steps above produce the same error message. "could not initialize camera" What does 'rpm -V gphoto2' say? rpm -V gphoto2 retuns no value Are there any 'hotplug' messages added to /var/log/messages when you unplug and re-insert the camera? Created attachment 103027 [details]
hotplug syslog entries
This seems to be a hal problem then. The /etc/hotplug/usb/usbcam script is being ignored. This seems to me to be a hotplug problem. Created attachment 103114 [details]
patch for hotplug to give console permissions on hotplug
This patch should fix the problems.
..and this file is provided by gphoto2, so it was a gphoto2 bug after all. Thanks, forgot about the path change. :-( Ah, my bad, [david@laptop gnome-volume-manager]$ rpm -qf /etc/hotplug/usb/usbcam gphoto2-2.1.4-2.1 [david@laptop gnome-volume-manager]$ rpm -qf /etc/hotplug/usb/libusbscanner sane-backends-1.0.14-3 so both gphoto2 and sane-backends needs a bit of the patch each. Fixed packages are: gphoto2-2.1.4-5 sane-backends-1.0.14-4 Almost there, needs this patch against gphoto2 --- usbcam.orig 2004-08-31 18:31:54.763716496 +0200 +++ usbcam 2004-08-31 18:20:03.212888664 +0200 @@ -29,7 +29,6 @@ if [ -f /var/run/console/console.lock ] then CONSOLEOWNER=`cat /var/run/console/console.lock` - elif [ -f /var/lock/console.lock ] elif [ -f /var/run/console.lock ] then CONSOLEOWNER=`cat /var/run/console.lock` Oops.. fixed in 2.1.4-6. Thanks. |