1 --- oblogout/__init__.py 2009-04-13 16:48:11.000000000 -0400
2 +++ da/oblogout/__init__.py 2010-10-19 14:38:29.000000000 -0300
3 @@ -222,8 +222,8 @@ class OpenboxLogout():
4 if self.parser.has_section("commands"):
5 for key in self.parser.items("commands"):
6 self.logger.debug("Setting cmd_%s as %s" % (key[0], key[1]))
7 - if key[1] in ['logout', 'restart', 'shutdown', 'suspend', 'hibernate', 'safesuspend', 'lock', 'switch']:
8 - if key[1]: setattr(self, "cmd_" + key[0], key[1])
9 + if key[0] in ['logout', 'restart', 'shutdown', 'suspend', 'hibernate', 'safesuspend', 'lock', 'switch']:
10 + if key[0]: setattr(self, "cmd_" + key[0], key[1])
12 # Load theme information from local directory if local mode is set