1
0
forked from pool/xfce4-session
xfce4-session/xfce4-session-4.10.1-fix-bashisms.patch
Guido Berhoerster e261b58ad5 - fix bashisms in startxfce4 script (bxo#10828)
* xfce4-session-4.10.1-fix-bashisms.patch (backported from
    upstream git)

OBS-URL: https://build.opensuse.org/package/show/X11:xfce/xfce4-session?expand=0&rev=122
2014-11-05 07:47:50 +00:00

38 lines
1.1 KiB
Diff

From c55ce35bcdb030cd11ac5fe98ec749918e434157 Mon Sep 17 00:00:00 2001
From: Eric Koegel <eric.koegel@gmail.com>
Date: Sun, 20 Jul 2014 18:09:22 +0300
Subject: Non-POSIX compliant test used in startxfce4 (Bug 10828)
Patch and bug report by seejay
The command line arguments "--help" and "--with-ck-launch"
can't be used on systems which have a non-bash /bin/sh
(e.g. Debian, as far as I'm aware). This is due to the use
of "==" instead of "=" in test commands, which is a bash
extension.
diff --git a/scripts/startxfce4.in b/scripts/startxfce4.in
index b346d8f..d0a74a9 100644
--- a/scripts/startxfce4.in
+++ b/scripts/startxfce4.in
@@ -24,7 +24,7 @@ then
OPTS=""
for OPT in $*
do
- if test "x$OPT" == "x--help"
+ if test "x$OPT" = "x--help"
then
# print help and exit
echo "Usage:"
@@ -37,7 +37,7 @@ then
echo
exit 0
- elif test "x$OPT" == "x--with-ck-launch"
+ elif test "x$OPT" = "x--with-ck-launch"
then
# try to launch xfce4-session with ck-launch-session in xinitrc
XFCE4_SESSION_WITH_CK="1"
--
cgit v0.10.1