[gnome-initial-setup] Add a script for the welcome tour



commit 430f3a32a868f62ea65e1a6f81ae241fa4685754
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Oct 3 08:11:52 2012 -0400

    Add a script for the welcome tour
    
    Putting several commands into the Exec field is not great.

 data/Makefile.am                                   |    8 ++++++--
 data/gnome-welcome-tour                            |    4 ++++
 ...ur.desktop => gnome-welcome-tour.desktop.in.in} |    2 +-
 3 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 3b80949..40aab1e 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -39,8 +39,9 @@ systemdsystemunit_DATA = gnome-initial-setup.service
 EXTRA_DIST =						\
 	20-gnome-initial-setup.rules			\
 	org.gnome.initial-setup.policy			\
-	welcome-tour.desktop				\
+	gnome-welcome-tour				\
 	setup-shell.desktop				\
+	gnome-welcome-tour.desktop.in.in		\
 	gnome-initial-setup.desktop.in.in		\
 	gnome-initial-setup-copy-worker.desktop.in.in	\
 	gnome-initial-setup.session			\
@@ -56,6 +57,9 @@ CLEANFILES =						\
 
 autostartdir = $(sysconfdir)/xdg/autostart
 autostart_DATA =					\
-	welcome-tour.desktop				\
+	gnome-welcome-tour.desktop			\
 	gnome-initial-setup-copy-worker.desktop		\
 	$(NULL)
+
+libexec_SCRIPTS =						\
+	gnome-welcome-tour
diff --git a/data/gnome-welcome-tour b/data/gnome-welcome-tour
new file mode 100755
index 0000000..aaaf2e7
--- /dev/null
+++ b/data/gnome-welcome-tour
@@ -0,0 +1,4 @@
+#! /bin/bash
+
+rm -f /tmp/run-welcome-tour
+epiphany --private-instance http://www.gnome3.org
diff --git a/data/welcome-tour.desktop b/data/gnome-welcome-tour.desktop.in.in
similarity index 54%
rename from data/welcome-tour.desktop
rename to data/gnome-welcome-tour.desktop.in.in
index 211984c..436c919 100644
--- a/data/welcome-tour.desktop
+++ b/data/gnome-welcome-tour.desktop.in.in
@@ -1,6 +1,6 @@
 [Desktop Entry]
 Type=Application
 Name=Welcome
-Exec=bash -c "epiphany --private-instance http://www.gnome3.org ; rm -f /tmp/run-welcome-tour"
+Exec= LIBEXECDIR@/gnome-welcome-tour
 AutostartCondition=if-exists /tmp/run-welcome-tour
 OnlyShowIn=GNOME;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]