diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-05-06 02:03:49 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-05-06 02:03:49 +0200 |
commit | 011f9bf3493a0552dcdd6b66e9433ea2ed945bfc (patch) | |
tree | fd307cc474c0738b4a363b58d78ba4a688baff78 | |
parent | 57314df9b046a04d7e9e11930e739b4647d1b978 (diff) | |
download | lightdm-remote-session-freerdp2-011f9bf3493a0552dcdd6b66e9433ea2ed945bfc.tar.gz lightdm-remote-session-freerdp2-011f9bf3493a0552dcdd6b66e9433ea2ed945bfc.tar.bz2 lightdm-remote-session-freerdp2-011f9bf3493a0552dcdd6b66e9433ea2ed945bfc.zip |
freerdp2-session.in: Use .freerdp2-socket (not .freerdp-socket). Add license header.
-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" |