]> Dogcows Code - chaz/openbox/blobdiff - data/xsession/openbox-gnome-session.in
Fix bug #4492 better, the test in openbox-gnome-session needs to be inverted
[chaz/openbox] / data / xsession / openbox-gnome-session.in
index de46bec534476029cb6567e269bb5c9e7cc80345..8dd799c0dd0775abd3f3c3c1daa5ca32368eb647 100644 (file)
@@ -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
@@ -46,7 +46,7 @@ else
   OB_SESSION=$(gconftool-2 -g $SPATH/openbox_session 2> /dev/null)
 
   # update the GNOME/Openbox session if needed
-  if x$OB_SESSION != x$SESSION; then
+  if test x$OB_SESSION != x$SESSION; then
       # the default session changed or we didn't run GNOME/Openbox before
       gconftool-2 -t list --list-type=strings -s $SPATH/openbox_session \
         "$SESSION" 2> /dev/null
This page took 0.021038 seconds and 4 git commands to generate.