x2goserver/x2goserver-4.0.1.19-kde-path.patch

45 lines
1.5 KiB
Diff

--- x2goserver-4.0.1.19/x2goserver/bin/x2goruncommand.orig 2016-04-08 00:34:39.358892294 +0200
+++ x2goserver-4.0.1.19/x2goserver/bin/x2goruncommand 2016-04-08 00:36:02.377865986 +0200
@@ -189,7 +189,7 @@
elif [ "$cmd" == "MATE" ]; then
cmd="/usr/bin/mate-session"
elif [ "$cmd" == "KDE" ]; then
- cmd="/usr/bin/startkde"
+ cmd="/opt/kde/bin/startkde"
elif [ "$cmd" == "XFCE4" ] || [ "$cmd" == "XFCE" ]; then
cmd="/usr/bin/xfce4-session"
elif [ "$cmd" == "LXDE" ]; then
@@ -211,8 +211,8 @@
cmd="/usr/bin/firefox"
elif [ -e "/usr/bin/abrowser" ]; then
cmd="/usr/bin/abrowser"
- elif [ -e "/usr/bin/konqueror" ]; then
- cmd="/usr/bin/konqueror"
+ elif [ -e "/opt/kde/bin/konqueror" ]; then
+ cmd="/opt/kde/bin/konqueror"
elif [ -e "/usr/bin/galeon" ]; then
cmd="/usr/bin/galeon"
elif [ -e "/usr/bin/chromium-browser" ]; then
@@ -225,8 +225,8 @@
cmd="/usr/bin/thunderbird"
elif [ -e "/usr/bin/icedove" ]; then
cmd="/usr/bin/icedove"
- elif [ -e "/usr/bin/kmail" ]; then
- cmd="/usr/bin/kmail"
+ elif [ -e "/opt/kde/bin/kmail" ]; then
+ cmd="/opt/kde/bin/kmail"
elif [ -e "/usr/bin/evolution" ]; then
cmd="/usr/bin/evolution"
fi
@@ -241,8 +241,8 @@
fi
if [ "$cmd" == "TERMINAL" ]; then
- if [ -e "/usr/bin/konsole" ]; then
- cmd="/usr/bin/konsole"
+ if [ -e "/opt/kde/bin/konsole" ]; then
+ cmd="/opt/kde/bin/konsole"
elif [ -e "/usr/bin/mate-terminal" ]; then
cmd="/usr/bin/mate-terminal"
elif [ -e "/usr/bin/gnome-terminal" ]; then