From 1ab1c7dafaef78c472b5f67a1fefe450f87e4ccb Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 9 Oct 2016 01:38:43 +0200 Subject: lightdm-remote-session-arctica: Fork from latest known version of lightdm-remote-session-x2go. --- arctica-session.in | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 arctica-session.in (limited to 'arctica-session.in') diff --git a/arctica-session.in b/arctica-session.in new file mode 100755 index 0000000..1caec66 --- /dev/null +++ b/arctica-session.in @@ -0,0 +1,30 @@ +#!/bin/bash + +# +# Copyright © 2012-2016 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/.arctica-socket"; +if [ -e "$socket" ]; then + socat unix-connect:"$socket" - | /usr/bin/arctica-cli --from-stdin 2>&1 | logger -t lightdm-remote-session-arctica -- +else + zenity --warning --text="Unable to locate Arctica Session socket" +fi; + +rm -f "$socket" -- cgit v1.2.3