From 011f9bf3493a0552dcdd6b66e9433ea2ed945bfc Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 6 May 2018 02:03:49 +0200 Subject: freerdp2-session.in: Use .freerdp2-socket (not .freerdp-socket). Add license header. --- freerdp2-session.in | 25 +++++++++++++++++++++++-- 1 file 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 +# 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 . +# +# Author: Mike Gabriel +# Author lightdm-remote-session-freerdp (where we forked from): Ted Gould +# + +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" -- cgit v1.2.3