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 | 63a029387ff06639f3261439a219f19a31eb36a1 (patch) | |
tree | d14421875f1d03271829e7b060fb1a38e5108f8f | |
parent | 7c3a571168e3bef61b689524937af89e7efb07b0 (diff) | |
download | lightdm-remote-session-freerdp2-63a029387ff06639f3261439a219f19a31eb36a1.tar.gz lightdm-remote-session-freerdp2-63a029387ff06639f3261439a219f19a31eb36a1.tar.bz2 lightdm-remote-session-freerdp2-63a029387ff06639f3261439a219f19a31eb36a1.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 |