From c3e0a6d73492e90d4dd754765a1c021f6de0204c Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 23 May 2007 17:59:58 +0000 Subject: [PATCH] don't let the session scripts take arguments --- data/xsession/openbox-gnome-session.in | 7 +++++++ data/xsession/openbox-kde-session.in | 7 +++++++ data/xsession/openbox-session.in | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/data/xsession/openbox-gnome-session.in b/data/xsession/openbox-gnome-session.in index cacfec4d..278ac6a8 100644 --- a/data/xsession/openbox-gnome-session.in +++ b/data/xsession/openbox-gnome-session.in @@ -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 "$@" diff --git a/data/xsession/openbox-kde-session.in b/data/xsession/openbox-kde-session.in index 0fe00940..16017260 100644 --- a/data/xsession/openbox-kde-session.in +++ b/data/xsession/openbox-kde-session.in @@ -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 "$@" diff --git a/data/xsession/openbox-session.in b/data/xsession/openbox-session.in index b3f1c057..cc2169f4 100644 --- a/data/xsession/openbox-session.in +++ b/data/xsession/openbox-session.in @@ -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" -- 2.45.2