summaryrefslogtreecommitdiffstats
path: root/data/gnome-welcome-tour
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdata/gnome-welcome-tour13
-rw-r--r--data/gnome-welcome-tour.desktop.in.in8
-rw-r--r--data/gnome-welcome-tour.service.in12
3 files changed, 33 insertions, 0 deletions
diff --git a/data/gnome-welcome-tour b/data/gnome-welcome-tour
new file mode 100755
index 0000000..51c9b59
--- /dev/null
+++ b/data/gnome-welcome-tour
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+cfgdir=${XDG_CONFIG_DIR:-$HOME/.config}
+
+# Don't do anything if gnome-tour isn't installed
+gnome_tour_path=$(which gnome-tour 2>/dev/null)
+if test -z "${gnome_tour_path}"; then
+ rm -f $cfgdir/run-welcome-tour
+ exit
+fi
+
+gnome-tour
+rm -f $cfgdir/run-welcome-tour
diff --git a/data/gnome-welcome-tour.desktop.in.in b/data/gnome-welcome-tour.desktop.in.in
new file mode 100644
index 0000000..45d82e5
--- /dev/null
+++ b/data/gnome-welcome-tour.desktop.in.in
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Application
+Name=Welcome
+Exec=@LIBEXECDIR@/gnome-welcome-tour
+AutostartCondition=if-exists run-welcome-tour
+OnlyShowIn=GNOME;
+NoDisplay=true
+X-GNOME-HiddenUnderSystemd=@systemd_hidden@
diff --git a/data/gnome-welcome-tour.service.in b/data/gnome-welcome-tour.service.in
new file mode 100644
index 0000000..d958630
--- /dev/null
+++ b/data/gnome-welcome-tour.service.in
@@ -0,0 +1,12 @@
+[Unit]
+Description=GNOME Welcome Tour
+
+BindsTo=gnome-session.target
+After=gnome-session.target
+
+ConditionPathExists=%E/run-welcome-tour
+
+[Service]
+Type=simple
+ExecStart=@libexecdir@/gnome-welcome-tour
+Restart=no