Pb for loading /etc/oblogout.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OBLogout |
New
|
Undecided
|
Unassigned |
Bug Description
My config:
Gentoo Linux
Python 2.6.5 (release26-maint, Aug 24 2010, 17:47:38)
Version of oblogout: 0.2
No problem found with the Installation.
=======
Oblogout running well, but when I click on icon, nothing appends
I've tried to launch it in a terminal :
click on reboot:
sh : reboot: command not found
click on halt:
sh: shutdown : command not found
click on lock:
sh: gnome-screensav
It seems that the conf file is not readed, because I've changed those values.
=======
My /etc/oblogout.conf file:
[settings]
usehal = false
[looks]
opacity = 70
bgcolor = black
buttontheme = foom
buttons = cancel, logout, restart, shutdown, suspend, lock
[shortcuts]
cancel = Escape
shutdown = S
restart = R
suspend = U
logout = L
lock = K
hibernate = H
[commands]
shutdown = /sbin/halt
restart = /sbin/reboot
suspend = pmi action suspend
hibernate = pmi action hibernate
safesuspend = safesuspend
lock = xlock -mode blank
switchuser = gdm-control --switch-user
logout = openbox --exit
=======
info: my halt is suid'ed.
Thank you ;)
Hi everybody,
First of all, English is not my native language, and I'm not a python developper.
But in my investigation for resolve my bug, I think I've found something interresting ...
In the script __init__.py:
221 # Parse in commands section of the configuration file. Check for valid keys and set the attribs on self has_section( "commands" ): items(" commands" ): debug(" Setting cmd_%s as %s" % (key[0], key[1]))
222 if self.parser.
223 for key in self.parser.
224 self.logger.
225 if key[1] in ['logout', 'restart', 'shutdown', 'suspend', 'hibernate', 'safesuspend', 'lock', 'switch']:
226 if key[1]: setattr(self, "cmd_" + key[0], key[1])
in line 225, 'if key[1] ...' browse the Rvalue of the commands section with value of the Lvalue ...
So it didn't work, and the attribs are not set to the /etc/oblogout.conf value instead of default value attributed lines [57..64]
It' will certainly work better if you change this line to:
225 if key[0] in ['logout', 'restart', 'shutdown', 'suspend', 'hibernate', 'safesuspend', 'lock', 'switch']:
I'm not python developper, and I don't know how it works, and how and where I can resolve this bug, so please, can you do it for me?
With all my gratitude
drfazor