summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-07-15 11:06:59 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-07-15 11:06:59 -0400
commit696f5c1a39ce24b9d557050d76dd81b387f6de7a (patch)
tree8c8c4043bbd91f680a2a6e5946996d96bfedd0d9
parent7b2833f23f2e759377dfd1b80135d6a199537134 (diff)
downloadgnome-initial-setup-696f5c1a39ce24b9d557050d76dd81b387f6de7a.tar.gz
Avoid a race in starting the welcome tour
There is a race between the welcome tour script removing the marker file, and gnome-session notificing that it is gone and killing the autostarted script. If the script wins the race and manages to start yelp first, things work ok, but if gnome-session wins the race, yelp never shows up. Fix this by only removing the file after yelp is launched.
-rwxr-xr-xdata/gnome-welcome-tour4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/gnome-welcome-tour b/data/gnome-welcome-tour
index 0cc9f8c..c479296 100755
--- a/data/gnome-welcome-tour
+++ b/data/gnome-welcome-tour
@@ -2,11 +2,10 @@
cfgdir=${XDG_CONFIG_DIR:-$HOME/.config}
-rm -f $cfgdir/run-welcome-tour
-
# Don't do anything if yelp isn't installed
yelp_path=$(which yelp 2>/dev/null)
if test -z "${yelp_path}"; then
+ rm -f $cfgdir/run-welcome-tour
exit
fi
@@ -19,3 +18,4 @@ EOF
fi
yelp help:gnome-help/getting-started
+rm -f $cfgdir/run-welcome-tour