diff options
author | Ted Gould <ted@gould.cx> | 2012-08-21 14:34:12 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-08-21 14:34:12 -0500 |
commit | 4741aaeb392239e6e484701e02e0ca18c9a47db7 (patch) | |
tree | d14421875f1d03271829e7b060fb1a38e5108f8f | |
parent | 402133a40e196f9acb64b989e3e42039f073ba52 (diff) | |
download | lightdm-remote-session-arctica-4741aaeb392239e6e484701e02e0ca18c9a47db7.tar.gz lightdm-remote-session-arctica-4741aaeb392239e6e484701e02e0ca18c9a47db7.tar.bz2 lightdm-remote-session-arctica-4741aaeb392239e6e484701e02e0ca18c9a47db7.zip |
Making the session call the socket sucker
-rw-r--r-- | Makefile.am | 9 | ||||
-rwxr-xr-x | freerdp-session | 7 | ||||
-rwxr-xr-x | freerdp-session.in | 9 |
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 |