Red Hat Bugzilla – Bug 176656
gnome-power-manager should require dbus-x11
Last modified: 2013-03-13 00:49:35 EDT
Description of problem:
After using yum to update from FC4 to Raw Hide, it's possible to install
gnome-power-manager without having dbus-x11 installed. The gnome-power-manager
notification icon can't run, though, because there's no session bus for it to
use. There's no session bus because xinitrc couldn't find /usr/bin/dbus-launch
to start one.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install FC4
2. Use "yum update" to install all updates.
3. Reconfigure yum to hit the development trees.
4. Use "yum update" to update to Raw Hide 20051228.
5. Install gnome-power-manager.
6. Reboot (among other things, this restarts the system message bus).
7. Log in.
8. Attempt to run "gnome-power-manager".
** (gnome-power-manager:3293): WARNING **: Failed to open connection to dbus
session bus: Unable to determine the address of the message bus
This program cannot start until you start the dbussession daemon
This is usually started in X or gnome startup (depending on distro)
You can launch the session dbus-daemon manually withthis [sic] command:
eval `dbus-launch --auto-syntax`
If this works, add "dbus-lauch --auto-syntax" to ~/.xinitrc
No output, friendly icon shows up in my notification area.
I'm thinking that this is the right way to do it because the other app on my
desktop which is connected to the session bus (eggcups) also explicitly lists
dbus-x11 as a package requirement.
I agree with adding dbus-x11 as a requirement. I've done this in the upstream
spec file also. Thanks, Richard.