Faulty parsing of config file

Bug #365976 reported by scorp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OBLogout
Fix Committed
Low
Andrew Williams

Bug Description

Hi,

I'm using minimal system with openbox and I've tested oblogout yesterday.
I found a bug in parsing config file (commands part). I've never used Python
yet, but I could find a faulty line, so here is a bugfix:

In oblogout/__init__.py line 225
- if key[1] in ['logout', 'restart', 'shutdown', 'suspend', 'hibernate', 'safesuspend', 'lock', 'switch']:
---
+ if key[0] in ['logout', 'restart', 'shutdown', 'suspend', 'hibernate', 'safesuspend', 'lock', 'switch']:

Related branches

Revision history for this message
Andrew Williams (nikdoof) wrote :

Interesting, what distribution are you using? What version of Python is included within that?

Changed in oblogout:
assignee: nobody → nikdoof
importance: Undecided → Low
milestone: none → 0.3
status: New → Triaged
Revision history for this message
scorp (scorp) wrote :

I'm using ArchLinux with Python 2.6. I have no gnome, so I wanted to change commands (xlock, pm-suspend and s.o.). It didn't work, so I've looked in the accordant code.

One more bug in the same area is, faulty commands execution. I didn't have time yet to
look deeper, but I set own suspend and xlock command, but if I select suspend in oblogout, xlock is started.

Revision history for this message
scorp (scorp) wrote :

Forget the last comment about a bug. I've looked through the code and I see, that lock is
executed on every selection of suspend, hibernate or lock. So the behavior is OK, it's just
the dbus suspend problem. But the faulty line in the configuration reading remains. I've looked in the repo for the line, before I notified the bug, it's still not fixed.

Revision history for this message
Andrew Williams (nikdoof) wrote :

Commited in 0.3, rev 96

Changed in oblogout:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.