aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-08-21 14:34:12 -0500
committerTed Gould <ted@gould.cx>2012-08-21 14:34:12 -0500
commit4741aaeb392239e6e484701e02e0ca18c9a47db7 (patch)
treed14421875f1d03271829e7b060fb1a38e5108f8f
parent402133a40e196f9acb64b989e3e42039f073ba52 (diff)
downloadlightdm-remote-session-x2go-4741aaeb392239e6e484701e02e0ca18c9a47db7.tar.gz
lightdm-remote-session-x2go-4741aaeb392239e6e484701e02e0ca18c9a47db7.tar.bz2
lightdm-remote-session-x2go-4741aaeb392239e6e484701e02e0ca18c9a47db7.zip
Making the session call the socket sucker
-rw-r--r--Makefile.am9
-rwxr-xr-xfreerdp-session7
-rwxr-xr-xfreerdp-session.in9
3 files changed, 16 insertions, 9 deletions
diff --git a/Makefile.am b/Makefile.am
index d31c18c..3d9a94a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -14,6 +14,10 @@ session_startdir = $(pkglibexecdir)
session_start_SCRIPTS = \
freerdp-session
+freerdp-session: freerdp-session.in
+ @sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@
+ @chmod +x $@
+
libexec_PROGRAMS = \
socket-sucker
socket_sucker_SOURCES = \
@@ -22,10 +26,11 @@ socket_sucker_SOURCES = \
EXTRA_DIST = \
$(pam_session_DATA) \
freerdp.desktop.in \
- freerdp-session
+ freerdp-session.in
CLEANFILES = \
- freerdp.desktop
+ freerdp.desktop \
+ freerdp-session
DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall
diff --git a/freerdp-session b/freerdp-session
deleted file mode 100755
index d304a98..0000000
--- a/freerdp-session
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/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;
diff --git a/freerdp-session.in b/freerdp-session.in
new file mode 100755
index 0000000..8868336
--- /dev/null
+++ b/freerdp-session.in
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+if [ -e ~/.freerdp-socket ]; then
+ @pkglibexecdir@/socket-sucker | /usr/bin/xfreerdp --plugin rdpsnd.so --no-nla -f --from-stdin
+else
+ zenity --warning --text="Unable to locate FreeRDP socket"
+fi;
+
+rm -f ~/.freerdp-socket