Fixes bug #4492 (mis-using the return value of grep -q in openbox-gnome-session script
Dana Jansens danakj@orodu.net
1 files changed,
1 insertions(+),
1 deletions(-)
M
data/xsession/openbox-gnome-session.in
→
data/xsession/openbox-gnome-session.in
@@ -37,7 +37,7 @@ # make sure openbox is going to be run
if test -z "$SESSION"; then # if its empty then just run openbox SESSION="[openbox]" - elif test -z $(echo "$SESSION" | grep -q openbox); then + elif echo "$SESSION" | grep -q openbox; then # if openbox isn't in the session then append it SESSION="${SESSION%]},openbox]" fi