From 4fba533170cb00524e9416e9e8cbe3e0f84778d4 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 12 May 2011 00:20:05 +0200 Subject: Getting the base files in. --- data/extra-sessions/classic-desktop.desktop | 4 ++++ data/extra-sessions/classic-desktop.sh | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 data/extra-sessions/classic-desktop.desktop create mode 100755 data/extra-sessions/classic-desktop.sh diff --git a/data/extra-sessions/classic-desktop.desktop b/data/extra-sessions/classic-desktop.desktop new file mode 100644 index 0000000..3532a6c --- /dev/null +++ b/data/extra-sessions/classic-desktop.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Name=Classic Guest Session +Exec=/usr/share/indicators/session/applications/test.sh +Type=Application diff --git a/data/extra-sessions/classic-desktop.sh b/data/extra-sessions/classic-desktop.sh new file mode 100755 index 0000000..fea8787 --- /dev/null +++ b/data/extra-sessions/classic-desktop.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +export GDMSESSION=gnome-classic + +/usr/share/gdm/guest-session/guest-session-launch --lock -- cgit v1.2.3 From 6a43af0aab69beebe255ee40fc35b402ad6edaf9 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 12 May 2011 00:22:21 +0200 Subject: Connecting in the build system --- configure.ac | 1 + data/Makefile.am | 4 +++- data/extra-sessions/Makefile.am | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 data/extra-sessions/Makefile.am diff --git a/configure.ac b/configure.ac index a882555..04f9cd5 100644 --- a/configure.ac +++ b/configure.ac @@ -147,6 +147,7 @@ data/icons/32x32/status/Makefile data/icons/scalable/Makefile data/icons/scalable/actions/Makefile data/icons/scalable/status/Makefile +data/extra-sessions/Makefile po/Makefile.in ]) diff --git a/data/Makefile.am b/data/Makefile.am index f452897..1f522d7 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,4 +1,6 @@ -SUBDIRS = icons +SUBDIRS = \ + icons \ + extra-sessions dbus_servicesdir = $(DBUSSERVICEDIR) service_in_files = indicator-session.service.in diff --git a/data/extra-sessions/Makefile.am b/data/extra-sessions/Makefile.am new file mode 100644 index 0000000..139597f --- /dev/null +++ b/data/extra-sessions/Makefile.am @@ -0,0 +1,2 @@ + + -- cgit v1.2.3 From 16744428d235ec5999cb3d924be9a2f90ef36033 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 12 May 2011 11:16:26 +0200 Subject: Building and installing the files --- data/extra-sessions/Makefile.am | 20 ++++++++++++++++++++ data/extra-sessions/classic-desktop.desktop | 4 ---- data/extra-sessions/classic-desktop.desktop.in | 4 ++++ 3 files changed, 24 insertions(+), 4 deletions(-) delete mode 100644 data/extra-sessions/classic-desktop.desktop create mode 100644 data/extra-sessions/classic-desktop.desktop.in 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 deleted file mode 100644 index 3532a6c..0000000 --- a/data/extra-sessions/classic-desktop.desktop +++ /dev/null @@ -1,4 +0,0 @@ -[Desktop Entry] -Name=Classic Guest Session -Exec=/usr/share/indicators/session/applications/test.sh -Type=Application diff --git a/data/extra-sessions/classic-desktop.desktop.in b/data/extra-sessions/classic-desktop.desktop.in new file mode 100644 index 0000000..fad4516 --- /dev/null +++ b/data/extra-sessions/classic-desktop.desktop.in @@ -0,0 +1,4 @@ +[Desktop Entry] +Name=Classic Guest Session +Exec=@guestdir@/test.sh +Type=Application -- cgit v1.2.3 From eb2890fecd65d4c2b7750c0f9537dc8b661d0821 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 12 May 2011 11:18:08 +0200 Subject: Disting the shell files --- data/extra-sessions/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/extra-sessions/Makefile.am b/data/extra-sessions/Makefile.am index 1a6f350..2a157ad 100644 --- a/data/extra-sessions/Makefile.am +++ b/data/extra-sessions/Makefile.am @@ -16,7 +16,8 @@ extra_guests_DATA = \ $(extra_guests_sh_files) EXTRA_DIST = \ - $(extra_guests_desktop_in_files) + $(extra_guests_desktop_in_files) \ + $(extra_guests_sh_files) CLEANFILES = \ $(extra_guests_desktop_files) -- cgit v1.2.3 From b3c1ec1c84b26d1cf70b009eb3312d12cec622b1 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 12 May 2011 11:28:06 +0200 Subject: Making the desktop translatable --- data/extra-sessions/Makefile.am | 18 ++++++++++++++---- data/extra-sessions/classic-desktop.desktop.in | 4 ---- data/extra-sessions/classic-desktop.desktop.in.in | 6 ++++++ po/POTFILES.in | 1 + 4 files changed, 21 insertions(+), 8 deletions(-) delete mode 100644 data/extra-sessions/classic-desktop.desktop.in create mode 100644 data/extra-sessions/classic-desktop.desktop.in.in diff --git a/data/extra-sessions/Makefile.am b/data/extra-sessions/Makefile.am index 2a157ad..e6b81a8 100644 --- a/data/extra-sessions/Makefile.am +++ b/data/extra-sessions/Makefile.am @@ -1,14 +1,24 @@ -extra_guests_desktop_in_files = \ - classic-desktop.desktop.in +################################### +# The files that are actually here +################################### + +extra_guests_desktop_in_in_files = \ + classic-desktop.desktop.in.in extra_guests_sh_files = \ classic-desktop.sh +################################### +# Rules to make things work +################################### + extra_guestsdir = $(datadir)/indicators/session/applications/ extra_guests_desktop_files = \ - $(extra_guests_desktop_in_files:.desktop.in=.desktop) + $(extra_guests_desktop_in_in_files:.desktop.in.in=.desktop) + +@INTLTOOL_DESKTOP_RULE@ -%.desktop: %.desktop.in +%.desktop.in: %.desktop.in.in sed -e "s|\@guestdir\@|$(extra_guestsdir)|" $< > $@ extra_guests_DATA = \ diff --git a/data/extra-sessions/classic-desktop.desktop.in b/data/extra-sessions/classic-desktop.desktop.in deleted file mode 100644 index fad4516..0000000 --- a/data/extra-sessions/classic-desktop.desktop.in +++ /dev/null @@ -1,4 +0,0 @@ -[Desktop Entry] -Name=Classic Guest Session -Exec=@guestdir@/test.sh -Type=Application diff --git a/data/extra-sessions/classic-desktop.desktop.in.in b/data/extra-sessions/classic-desktop.desktop.in.in new file mode 100644 index 0000000..d7ca3da --- /dev/null +++ b/data/extra-sessions/classic-desktop.desktop.in.in @@ -0,0 +1,6 @@ +[Desktop Entry] +Version=1.0 +_Name=Classic Guest Session +_Comment=Start a guest session using the classic desktop +Exec=@guestdir@/test.sh +Type=Application diff --git a/po/POTFILES.in b/po/POTFILES.in index 3a8bad7..c2256c1 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,5 +1,6 @@ [encoding: UTF-8] data/indicator-session.schemas.in +data/extra-sessions/classic-desktop.desktop.in.in src/gconf-helper.c src/lock-helper.c src/gtk-logout-helper.c -- cgit v1.2.3 From 9258cd855aef371fb1e83796271e1635e50be673 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 12 May 2011 11:30:04 +0200 Subject: Eh, forgot the .in.in files --- data/extra-sessions/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/extra-sessions/Makefile.am b/data/extra-sessions/Makefile.am index e6b81a8..ca9ba8e 100644 --- a/data/extra-sessions/Makefile.am +++ b/data/extra-sessions/Makefile.am @@ -26,7 +26,7 @@ extra_guests_DATA = \ $(extra_guests_sh_files) EXTRA_DIST = \ - $(extra_guests_desktop_in_files) \ + $(extra_guests_desktop_in_in_files) \ $(extra_guests_sh_files) CLEANFILES = \ -- cgit v1.2.3