Fix bug #4492 better, the test in openbox-gnome-session needs to be inverted

This commit is contained in:
Dana Jansens 2010-01-24 00:07:56 -05:00
parent 374888f5e9
commit 14f8b4cb54

View file

@ -37,7 +37,7 @@ else
if test -z "$SESSION"; then if test -z "$SESSION"; then
# if its empty then just run openbox # if its empty then just run openbox
SESSION="[openbox]" SESSION="[openbox]"
elif echo "$SESSION" | grep -q openbox; then elif ! echo "$SESSION" | grep -q openbox; then
# if openbox isn't in the session then append it # if openbox isn't in the session then append it
SESSION="${SESSION%]},openbox]" SESSION="${SESSION%]},openbox]"
fi fi