diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2012-11-11 13:13:29 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2012-11-11 13:13:29 +0100 |
commit | c496029bc524f81c59c50ac928aa7ce603156359 (patch) | |
tree | 000cbce7501e33030fe363bcb9185ab2857910c0 /x2go-session.in | |
parent | 0e8c0ee81b69be4c71a8998111350db9c92bfd03 (diff) | |
download | lightdm-remote-session-x2go-c496029bc524f81c59c50ac928aa7ce603156359.tar.gz lightdm-remote-session-x2go-c496029bc524f81c59c50ac928aa7ce603156359.tar.bz2 lightdm-remote-session-x2go-c496029bc524f81c59c50ac928aa7ce603156359.zip |
Use socat instead of socket-sucker.c from lightdm-remote-session-freerdp.
Diffstat (limited to 'x2go-session.in')
-rwxr-xr-x | x2go-session.in | 7 |
1 files changed, 4 insertions, 3 deletions
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 <ted@canonical.com> # -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" |