I guess it would be helpful to include that if I use the defaults for oblogout I get
Code: Select all
user@opendeb:~$ oblogout
Traceback (most recent call last):
File "/usr/bin/oblogout", line 97, in <module>
sys.exit(main())
File "/usr/bin/oblogout", line 92, in main
app = OpenboxLogout(config, local_mode)
File "/usr/lib/python2.7/dist-packages/oblogout/__init__.py", line 82, in __init__
self.load_config(config)
File "/usr/lib/python2.7/dist-packages/oblogout/__init__.py", line 264, in load_config
if not self.dbus.check_ability(button):
File "/usr/lib/python2.7/dist-packages/oblogout/dbushandler.py", line 127, in check_ability
return self._halpm.CanSuspend
File "/usr/lib/python2.7/dist-packages/oblogout/dbushandler.py", line 58, in _halpm
hal = self._sysbus.get_object ("org.freedesktop.Hal", "/org/freedesktop/Hal/devices/computer")
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Hal was not provided by any .service files
If I install the hal package, I get the buttons but "shutdown" and "reboot" do nothing, and back in the console I get
Code: Select all
user@opendeb:~$ oblogout
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/oblogout/__init__.py", line 354, in click_button
self.dbus.restart()
File "/usr/lib/python2.7/dist-packages/oblogout/dbushandler.py", line 143, in restart
if not self.__auth_perms("org.freedesktop.hal.power-management.reboot"):
File "/usr/lib/python2.7/dist-packages/oblogout/dbushandler.py", line 94, in __auth_perms
if self.__check_perms(id):
File "/usr/lib/python2.7/dist-packages/oblogout/dbushandler.py", line 80, in __check_perms
res = self._polkit.IsProcessAuthorized(id, os.getpid(), False)
File "/usr/lib/python2.7/dist-packages/oblogout/dbushandler.py", line 50, in _polkit
pk = self._sysbus.get_object ("org.freedesktop.PolicyKit", "/")
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit was not provided by any .service files
If I install policykit-1 and/or policykit-1-gnome I get the same.
If I edit
/etc/oblogout.conf and change "usehal" from true to false I get
Code: Select all
user@opendeb:~$ oblogout
sh: 1: reboot: not foundIf I type
reboot at the command line I get
Code: Select all
user@opendeb:~$ reboot
bash: reboot: command not foundIf I type
/sbin/reboot I get
Code: Select all
user@opendeb:~$ /sbin/reboot
reboot: must be superuser.If I type
sudo /sbin/reboot at the command line it reboots (after asking for password of course)
So... If I then edit the
/etc/oblogout.conf so that the reboot function has the full path to
/sbin/reboot I get
Code: Select all
user@opendeb:~$ oblogout
sh: 1: reboot: not foundIf I then edit the
/etc/oblogout.conf so that the reboot function says
/usr/bin/sudo /sbin/reboot I get
Code: Select all
user@opendeb:~$ oblogout
sh: 1: reboot: not foundOkay, so I edit the
/etc/oblogout.conf so that the reboot function says
/usr/bin/sudo reboot (without the path to reboot) and I get
Code: Select all
user@opendeb:~$ oblogout
sh: 1: reboot: not foundOh I also tried adding this to /etc/sudoers
and it does allow me to use sudo without a password prompt, however it does not help oblogout find /sbin/shutdown
Code: Select all
user@opendeb:~$ oblogout
sh: 1: reboot: not foundHowever, if I logout and log back in as root... BAM! It works under almost all of the above conditions.
S.