aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am13
-rw-r--r--freerdp.desktop.in8
2 files changed, 20 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 51fd14b..3ac226a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,8 +3,19 @@ pam_sessiondir = $(sysconfdir)/pam.d/
pam_session_DATA = \
lightdm-remote-freerdp
+lightdm_sessiondir = $(datadir)/lightdm/remote-sessions
+lightdm_session_DATA = \
+ freerdp.desktop
+
+%.desktop: %.desktop.in
+ @sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@
+
EXTRA_DIST = \
- $(pam_session_DATA)
+ $(pam_session_DATA) \
+ freerdp.desktop.in
+
+CLEANFILES = \
+ freerdp.desktop
DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall
diff --git a/freerdp.desktop.in b/freerdp.desktop.in
new file mode 100644
index 0000000..19c6771
--- /dev/null
+++ b/freerdp.desktop.in
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=FreeRDP
+Comment=Full Screen RDP session
+Exec=@pkglibexecdir@/freerdp-session
+TryExec=@pkglibexecdir@/freerdp-session
+Icon=
+Type=Application
+X-LightDM-Remote-PAM-Session=lightdm-remote-freerdp