[Bug 46319] Re: Pressing POWER displays logout dialogue and then immediately shuts down
Paul Sladen
ubuntu at paul.sladen.org
Sat May 27 14:49:13 UTC 2006
Reading this through carefully again:
"the system [] shuts down [..] when i press the powerbutton"
and holding the power-button for 2 seconds on my ThinkPad did indeed
shutdown:
received event "button/power PWRF 00000080 00000001"
executing action "/etc/acpi/powerbtn.sh"
/etc/acpi/powerbtn.sh: line 9: [: 22545: unary operator expected
ERROR: Couldn't attach to DCOP server!
This is because 'pidof' is being used like:
if [ `pidof gnome-power-manager` ] ; then
instead of:
if pidof gnome-power-manager > /dev/null ; then
In the former case, if there are two processes running (for whatever
reason), then the unquoted result expands to:
test 1234 2345
and induces the error above.
** Changed in: acpi-support (Ubuntu)
Assignee: (unassigned) => Paul Sladen
--
Pressing POWER displays logout dialogue and then immediately shuts down
https://launchpad.net/bugs/46319
More information about the desktop-bugs
mailing list