From d8a641c00cf2c01c3281bf6ae03de6c6f0fc926c Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 7 May 2018 13:00:35 +0200 Subject: freerdp2-session.in: Sounds is not yet working. If we launch a pulseaudio process, it starts a dummy device for unknown reason. --- freerdp2-session.in | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/freerdp2-session.in b/freerdp2-session.in index 51ce22b..baac1fb 100755 --- a/freerdp2-session.in +++ b/freerdp2-session.in @@ -27,7 +27,24 @@ if [ -e "$socket" ]; then AUTH_INFO_PASSWORD=$(echo "$AUTH_INFO" | awk '{ print $2 }') AUTH_INFO_DOMAIN=$(echo "$AUTH_INFO" | awk '{ print $3 }') AUTH_INFO_HOST=$(echo "$AUTH_INFO" | awk '{ print $4 }') - echo "$AUTH_INFO_PASSWORD" | /usr/bin/xfreerdp /sound:sys:pulse /f /v:"${AUTH_INFO_HOST}" /u:"${AUTH_INFO_USER}" /d:"${AUTH_INFO_DOMAIN}" /from-stdin | logger -t lightdm-remote-session-freerdp2 -- + + # FIXME: it seems, pulseaudio is not startet at this point for the guest user + # However, launching it here with pulseaudio -D feels wrong in the age of systemd + + # give the RDP server a little bit of time to recover from libpam-freerdp2's freerdp2-auth-check test connect. + sleep 1 + + # 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 \ + \ + | logger -t lightdm-remote-session-freerdp2 -- + + # FIXME: possibly stop pulseaudio here with -k again (we have seen permissioned denied warnings, when doing this. Better approaches?) + unset AUTH_INFO_PASSWORD else zenity --warning --text="Unable to locate FreeRDP socket" -- cgit v1.2.3