aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-05-12 11:16:26 +0200
committerTed Gould <ted@gould.cx>2011-05-12 11:16:26 +0200
commit16744428d235ec5999cb3d924be9a2f90ef36033 (patch)
tree18338ede66a4e2574ba99071174fbc9ba8a48236
parent6a43af0aab69beebe255ee40fc35b402ad6edaf9 (diff)
downloadayatana-indicator-session-16744428d235ec5999cb3d924be9a2f90ef36033.tar.gz
ayatana-indicator-session-16744428d235ec5999cb3d924be9a2f90ef36033.tar.bz2
ayatana-indicator-session-16744428d235ec5999cb3d924be9a2f90ef36033.zip
Building and installing the files
-rw-r--r--data/extra-sessions/Makefile.am20
-rw-r--r--data/extra-sessions/classic-desktop.desktop.in (renamed from data/extra-sessions/classic-desktop.desktop)2
2 files changed, 21 insertions, 1 deletions
diff --git a/data/extra-sessions/Makefile.am b/data/extra-sessions/Makefile.am
index 139597f..1a6f350 100644
--- a/data/extra-sessions/Makefile.am
+++ b/data/extra-sessions/Makefile.am
@@ -1,2 +1,22 @@
+extra_guests_desktop_in_files = \
+ classic-desktop.desktop.in
+extra_guests_sh_files = \
+ classic-desktop.sh
+extra_guestsdir = $(datadir)/indicators/session/applications/
+extra_guests_desktop_files = \
+ $(extra_guests_desktop_in_files:.desktop.in=.desktop)
+
+%.desktop: %.desktop.in
+ sed -e "s|\@guestdir\@|$(extra_guestsdir)|" $< > $@
+
+extra_guests_DATA = \
+ $(extra_guests_desktop_files) \
+ $(extra_guests_sh_files)
+
+EXTRA_DIST = \
+ $(extra_guests_desktop_in_files)
+
+CLEANFILES = \
+ $(extra_guests_desktop_files)
diff --git a/data/extra-sessions/classic-desktop.desktop b/data/extra-sessions/classic-desktop.desktop.in
index 3532a6c..fad4516 100644
--- a/data/extra-sessions/classic-desktop.desktop
+++ b/data/extra-sessions/classic-desktop.desktop.in
@@ -1,4 +1,4 @@
[Desktop Entry]
Name=Classic Guest Session
-Exec=/usr/share/indicators/session/applications/test.sh
+Exec=@guestdir@/test.sh
Type=Application