Public bug reported:

Binary package hint: gnome-power-manager

The battery icon only seems to show if I do

$ sudo gnome-power-manager

That is, if gnome-power-manager is run as root, the battery icon in the
notification area in the taskbar shows.  If I run as a normal user, it
doesn't.

I assume that there is some permission issue.

I did an strace and it looks like a normal user gets stuck at

 poll([{fd=5, events=POLLIN}, {fd=3, events=POLLIN}, {fd=11,
events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14,
events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}, {fd=8,
events=POLLIN}, {fd=7, events=POLLIN}], 8, 9995 <unfinished ...>

whereas the root user gets past this and starts opening up files in
/usr/share/gnome-power-manager/icons .  I tried looking at the various
associated files and sockets.  Some are /tmp/orbit-XXXX and others are
dbus-related, but I can't tell which is the sticking point.

$ lsb_release -rd
Description:    Ubuntu lucid (development branch)
Release:        10.04
$ apt-cache policy gnome-power-manager
gnome-power-manager:
  Installed: 2.29.91-0ubuntu3
  Candidate: 2.29.91-0ubuntu3
  Version table:
 *** 2.29.91-0ubuntu3 0
        100 /var/lib/dpkg/status

ProblemType: Bug
Architecture: i386
Date: Thu Mar  4 08:01:28 2010
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100213)
Package: gnome-power-manager 2.29.91-0ubuntu3
ProcEnviron:
 PATH=(custom, no user)
 LANG=C
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-15.22-generic-pae
SourcePackage: gnome-power-manager
Uname: Linux 2.6.32-15-generic-pae i686

** Affects: gnome-power-manager (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 lucid

-- 
gnome-power-manager doesn't show icon as non-root user
https://bugs.launchpad.net/bugs/532005
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to