don't let the session scripts take arguments
authorDana Jansens <danakj@orodu.net>
Wed, 23 May 2007 17:59:58 +0000 (17:59 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 23 May 2007 17:59:58 +0000 (17:59 +0000)
data/xsession/openbox-gnome-session.in
data/xsession/openbox-kde-session.in
data/xsession/openbox-session.in

index cacfec4..278ac6a 100644 (file)
@@ -1,5 +1,12 @@
 #!/bin/sh
 
+if test -n "$1"; then
+    echo "Syntax: openbox-gnome-session"
+    echo
+    echo "See the openbox-gnome-session(1) manpage for help."
+  exit
+fi
+
 # Run GNOME with Openbox as its window manager
 export WINDOW_MANAGER="@bindir@/openbox"
 exec gnome-session --choose-session=openbox-session "$@"
index 0fe0094..1601726 100644 (file)
@@ -1,5 +1,12 @@
 #!/bin/sh
 
+if test -n "$1"; then
+    echo "Syntax: openbox-kde-session"
+    echo
+    echo "See the openbox-kde-session(1) manpage for help."
+  exit
+fi
+
 # Run KDE with Openbox as its window manager
 export KDEWM="@bindir@/openbox"
 exec startkde "$@"
index b3f1c05..cc2169f 100644 (file)
@@ -1,5 +1,12 @@
 #!/bin/sh
 
+if test -n "$1"; then
+    echo "Syntax: openbox-session"
+    echo
+    echo "See the openbox-session(1) manpage for help."
+  exit
+fi
+
 AUTOSTART="$HOME/.config/openbox/autostart.sh"
 GLOBALAUTOSTART="@configdir@/openbox/autostart.sh"