The relevant source code line is:
  QProcess::startDetached( "gdm-signal -h" ); // Gnome shutdown

The first problem with that is that gdm-signal in the 
"powermanagement-interface" package, which isn't preinstalled in a standard 
Ubuntu installation.
The second problem is that even if one installs that package, gdm-signal -h 
seems to no longer work.

A simple workaround is to not install the powermanagement-interface package, 
but to create a /usr/bin/gdm-signal script instead with the following contents:
#!/bin/sh
gnome-power-cmd shutdown
(don't forget to chmod +x the script)

Unfortunately, gnome-power-cmd is no longer there in Karmic.
Someone should ask the gnome people for a stable way to poweroff without having 
sudo priviledges and without modifying the sudoers file. :)

** Changed in: italc (Ubuntu)
       Status: New => Confirmed

-- 
"power down" request fails on 9.04; logout instead
https://bugs.launchpad.net/bugs/367960
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to