diff options
Diffstat (limited to 'freerdp2-session.in')
-rwxr-xr-x | freerdp2-session.in | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/freerdp2-session.in b/freerdp2-session.in index 0242a13..fe6fb62 100755 --- a/freerdp2-session.in +++ b/freerdp2-session.in @@ -1,9 +1,30 @@ #!/bin/bash -if [ -e ~/.freerdp-socket ]; then +# +# Copyright © 2018 Mike Gabriel <mike.gabriel@das-netzwerkteam.de> +# Copyright © 2012 Canonical Ltd. +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License version 3, as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranties of +# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see <http://www.gnu.org/licenses/>. +# +# Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> +# Author lightdm-remote-session-freerdp (where we forked from): Ted Gould <ted@canonical.com> +# + +socket="$HOME/.freerdp2-socket"; +if [ -e "$socket" ]; then socat unix-connect:"$socket" - | /usr/bin/xfreerdp /sound:sys:pulse /f /from-stdin else zenity --warning --text="Unable to locate FreeRDP socket" fi; -rm -f ~/.freerdp-socket +rm -f "$socket" |