aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-07 13:00:35 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-07 13:01:06 +0200
commitd8a641c00cf2c01c3281bf6ae03de6c6f0fc926c (patch)
treeecb246ab9bc45db5b30bd679a8b553f8303ca7c4
parent9b64560198dab88a260627f4c7e987f4099a820b (diff)
downloadlightdm-remote-session-freerdp2-d8a641c00cf2c01c3281bf6ae03de6c6f0fc926c.tar.gz
lightdm-remote-session-freerdp2-d8a641c00cf2c01c3281bf6ae03de6c6f0fc926c.tar.bz2
lightdm-remote-session-freerdp2-d8a641c00cf2c01c3281bf6ae03de6c6f0fc926c.zip
freerdp2-session.in: Sounds is not yet working. If we launch a pulseaudio process, it starts a dummy device for unknown reason.
-rwxr-xr-xfreerdp2-session.in19
1 files changed, 18 insertions, 1 deletions
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"