Summary: | kde-4.4.2 and earlier: KDE apps can't see webcam (dbus permissions) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Zeev Tarantov <zeev.tarantov> |
Component: | [OLD] Unspecified | Assignee: | Freedesktop bugs <freedesktop-bugs> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | maltee, udev-bugs |
Priority: | High | Flags: | tampakrap:
Bugday+
|
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 313999 |
Description
Zeev Tarantov
2009-06-03 22:49:40 UTC
@udev: guys your ideas? I dont have any cam but if user has to mess with udev to get it working something is borked on your side i guess...? The linux kernel has a virtual webcam device for testing user space applications. enable CONFIG_VIDEO_VIVI=m in your .config, make, make modules_install and modprobe vivi, then mplayer tv:// shows a testing pattern. No hardware required. Kopete can't see this "webcam". Please, try it. Try it with Gnome applications too. I didn't bother because I'm sure they go through the same dbus mechanism. Adobe Flash Player 10 beta x86-64 works with my webcam. Open source KDE apps - don't. This is very sad. My next stage is figuring out how to rip out any and all dbus security restrictions, in either configuration or code. Any news on this? Maybe this is a hal issue? When loading vivi to get a test video device, "udevadm monitor" shows it, but "lshal -m" does not show anything. Which KDE version do you have, and do you still have this problem on 4.4.2? KDE 4.4.2. I've commented out these two lines: <deny own="*"/> <deny send_type="method_call"/> In /etc/dbus-1/system.conf and that fixed all my problems. K3B can now see my dvdrw, KDE can notify on inserting a thumb drive, apps see my webcam, etc. This is obviously not a solution, because it's like running as root. I tell myself that when I have time, I'll read up on dbus configuration and write rules to exactly punch the right holes instead of allowing everything. I keep procrastinating on that. So, but is still valid, help with dbus configuration very much appreciated. Reassigning to freedesktop-bugs, since kde gets cc'd there anyway... This might sound like the obvious, but: Is this after dbus upgrade? Have you tried to recompile x11-libs/qt-dbus after that? This isn't to do with code. The code works as designed. Both dbus and qt-dbus. This is to do with the contents of /etc/dbus-1/system.d/. Mine has: cups.conf, hal.conf, wpa_supplicant.conf, skype.conf and: org.kde.auth.conf, org.kde.fontinst.conf, org.kde.kcontrol.kcmclock.conf, org.kde.kcontrol.kcmremotewidgets.conf, org.kde.ksysguard.processlisthelper.conf Do you have a KDE-related rules file I don't have installed? Which package installs it? Mine were installed by kde-base/kdelibs, kde-base/systemsettings and kde-base/ksysguard. Maybe hal.conf installed by sys-apps/hal-0.5.14-r2 is too restrictive? Maybe it should allow more stuff? Hi, this is not a general problem. Webcam in KDE apps is working for me since I have a webcam (I first used it with 4.3.3, I guess) without problems. Maybe you should try to ask in the forums, too and see if you can get help there. btw., these are the contents of my /etc/dbus-1/system.d/: ConsoleKit.conf cups.conf hal.conf murmur.conf NetworkManager.conf nm-avahi-autoipd.conf nm-dhcp-client.conf nm-dispatcher.conf nm-system-settings.conf org.freedesktop.PolicyKit.conf org.kde.auth.conf org.kde.fontinst.conf org.kde.kcontrol.kcmclock.conf org.kde.kcontrol.kcmremotewidgets.conf org.kde.ksysguard.processlisthelper.conf skype.conf wpa_supplicant.conf feel free to ask me uploading the contents of any of these files, but they should actually be the same as your's. |