Group :: System/Servers
RPM: x2goserver
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: x2goruncommand.diff
Download
Download
--- x2goserver-2.0.1.orig/x2goruncommand
+++ x2goserver-2.0.1/x2goruncommand
@@ -1,19 +1,24 @@
#!/bin/bash
+
DISPLAY=":$1"
X2GO_AGENT_PID=$2
X2GO_SESSION=$3
-ARTS_SERVER=localhost:$4
cmd=$5
+sndsys=$6
export DISPLAY
export X2GO_AGENT_PID
export X2GO_SESSION
-export ARTS_SERVER
-$cmd
-
-kill -9 $X2GO_AGENT_PID
+if [ "$sndsys" == "esd" ]
+then
+ export ESPEAKER=localhost:$4
+elif [ "$sndsys" == "arts" ]
+then
+ export ARTS_SERVER=localhost:$4
+fi
+$cmd
+kill -TERM $X2GO_AGENT_PID
sudo x2gopgwrapper changestatus 'F' $X2GO_SESSION > /dev/null
-
export HOSTNAME
x2goumount_session $X2GO_SESSION