From c496029bc524f81c59c50ac928aa7ce603156359 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 11 Nov 2012 13:13:29 +0100 Subject: Use socat instead of socket-sucker.c from lightdm-remote-session-freerdp. --- x2go-session.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'x2go-session.in') diff --git a/x2go-session.in b/x2go-session.in index 7466509..1b3c739 100755 --- a/x2go-session.in +++ b/x2go-session.in @@ -20,10 +20,11 @@ # Author lightdm-remote-session-freerdp (where we forked from): Ted Gould # -if [ -e ~/.x2go-socket ]; then - @libexecdir@/socket-sucker | /usr/bin/pyhoca-cli --from-stdin --add-to-known-hosts --kbd-type auto --sound pulse 2>&1 | logger -t lightdm-remote-session-x2go -- +socket="$HOME/.x2go-socket"; +if [ -e "$socket" ]; then + socat unix-connect:"$socket" - | /usr/bin/pyhoca-cli --from-stdin --add-to-known-hosts --kbd-type auto --sound pulse 2>&1 | logger -t lightdm-remote-session-x2go -- else zenity --warning --text="Unable to locate X2GoSession/PyHoca socket" fi; -rm -f ~/.x2go-socket +rm -f "$socket" -- cgit v1.2.3