Comment 1 for bug 628096

Revision history for this message
drfazor (drfazor2) wrote :

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
222 if self.parser.has_section("commands"):
223 for key in self.parser.items("commands"):
224 self.logger.debug("Setting cmd_%s as %s" % (key[0], key[1]))
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