diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-11-10 11:50:08 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-11-10 11:50:08 +0100 |
commit | 8c94c6b3880f5e2b495d401de576ab489fd2dc2d (patch) | |
tree | 8004895f4c4107ac00a2cd0a7a8dfa4ca123e404 | |
parent | ef7e9229fee788b0f2023ec7c022d64640f773f5 (diff) | |
download | lightdm-remote-session-freerdp2-8c94c6b3880f5e2b495d401de576ab489fd2dc2d.tar.gz lightdm-remote-session-freerdp2-8c94c6b3880f5e2b495d401de576ab489fd2dc2d.tar.bz2 lightdm-remote-session-freerdp2-8c94c6b3880f5e2b495d401de576ab489fd2dc2d.zip |
freerdp2-session.in: Send xfreerdp options being used to syslog.
-rwxr-xr-x | freerdp2-session.in | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/freerdp2-session.in b/freerdp2-session.in index b08d98c..571330f 100755 --- a/freerdp2-session.in +++ b/freerdp2-session.in @@ -20,7 +20,8 @@ # Author lightdm-remote-session-freerdp (where we forked from): Ted Gould <ted@canonical.com> # -FREERDP2_OPTIONS = "" +NULL= +FREERDP2_OPTIONS="" if [ -f /etc/default/lightdm-remote-session-freerdp2 ]; then . /etc/default/lightdm-remote-session-freerdp2 @@ -40,18 +41,22 @@ if [ -e "$socket" ]; then # give the RDP server a little bit of time to recover from libpam-freerdp2's freerdp2-auth-check test connect. sleep 1 + FREERDP2_OPTIONS="/f \ + /v:"${AUTH_INFO_HOST}" \ + /u:"${AUTH_INFO_USER}" \ + /d:"${AUTH_INFO_DOMAIN}" \ + /from-stdin \ + -toggle-fullscreen \ + ${FREERDP2_OPTIONS} \ + ${NULL}" + + logger -t $(basname $0) "xfreerdp called with options: ${FREERDP_OPTIONS}." + + # FIXME: get audio working... add /sound:sys:pulse to xfreerdp cmdline args... - echo "$AUTH_INFO_PASSWORD" | /usr/bin/xfreerdp /f \ - /v:"${AUTH_INFO_HOST}" \ - /u:"${AUTH_INFO_USER}" \ - /d:"${AUTH_INFO_DOMAIN}" \ - /from-stdin \ - -toggle-fullscreen \ - ${FREERDP2_OPTIONS} \ - 2>&1 \ - \ + echo "$AUTH_INFO_PASSWORD" | /usr/bin/xfreerdp ${FREERDP_OPTIONS} 2>&1 \ | logger -t lightdm-remote-session-freerdp2 -- \ - & + ${NULL} & unset AUTH_INFO_PASSWORD |