From 62e36ad0410ce888e7097e7bce5cbbf67b5b6290 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 12 Jan 2010 13:59:25 -0500 Subject: [PATCH] Fixes bug #4492 (mis-using the return value of grep -q in openbox-gnome-session script --- data/xsession/openbox-gnome-session.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/xsession/openbox-gnome-session.in b/data/xsession/openbox-gnome-session.in index 6765ae82..1f17edbc 100644 --- a/data/xsession/openbox-gnome-session.in +++ b/data/xsession/openbox-gnome-session.in @@ -37,7 +37,7 @@ else 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 -- 2.45.2