aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-08-17 23:08:01 -0500
committerTed Gould <ted@gould.cx>2012-08-17 23:08:01 -0500
commitde33f147b69b236db47651935afd35ec17a64683 (patch)
treeb8e5e63294ad3babb549b4719c3d2123fd565914
parent0eb7c8cf572a7925fdb588a662b90a6bd8eeb2e4 (diff)
downloadlightdm-remote-session-x2go-de33f147b69b236db47651935afd35ec17a64683.tar.gz
lightdm-remote-session-x2go-de33f147b69b236db47651935afd35ec17a64683.tar.bz2
lightdm-remote-session-x2go-de33f147b69b236db47651935afd35ec17a64683.zip
Adding the piece that actually starts the session itself.
-rw-r--r--Makefile.am7
-rwxr-xr-xfreerdp-session7
2 files changed, 13 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 3ac226a..de9cedc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,9 +10,14 @@ lightdm_session_DATA = \
%.desktop: %.desktop.in
@sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@
+session_startdir = $(pkglibexecdir)
+session_start_SCRIPTS = \
+ freerdp-session
+
EXTRA_DIST = \
$(pam_session_DATA) \
- freerdp.desktop.in
+ freerdp.desktop.in \
+ freerdp-session
CLEANFILES = \
freerdp.desktop
diff --git a/freerdp-session b/freerdp-session
new file mode 100755
index 0000000..d304a98
--- /dev/null
+++ b/freerdp-session
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if [ -e ~/.freerdp-socket ]; then
+ cat ~/.freerdp-socket | /usr/bin/xfreerdp --plugin rdpsnd.so --no-nla -f --from-stdin
+else
+ zenity --warning --text="Unable to locate FreeRDP socket"
+fi;