[gnome-initial-setup] Fix fallback for the welcome-tour video



commit fae971981982e3ec84564642cc4b49e39673e101
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Apr 10 19:05:26 2013 -0400

    Fix fallback for the welcome-tour video
    
    When running gnome-welcome-tour in Japanese locale, we would
    find that /usr/share/help/ja/gnome-help/ exists, and then proceed
    to show the nonexisting
    /usr/share/help/ja/gnome-help/figures/gnome-yelp-intro.webm
    video. Instead of checking for the directory, check for the existence
    of the file we're actually interested in. Fixes
    https://bugzilla.redhat.com/show_bug.cgi?id=948683

 data/gnome-welcome-tour |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/data/gnome-welcome-tour b/data/gnome-welcome-tour
index 8416f76..6219220 100755
--- a/data/gnome-welcome-tour
+++ b/data/gnome-welcome-tour
@@ -2,7 +2,7 @@
 
 cfgdir=${XDG_CONFIG_DIR:-$HOME/.config}
 prefix=/usr/share/help
-suffix=gnome-help
+suffix=gnome-help/figures/gnome-yelp-intro.webm
 full_locale=$LANG
 locale=`echo $full_locale | sed -e 's/\..*//'`
 lang=`echo $locale | sed -e 's/_.*//'`
@@ -24,11 +24,13 @@ EOF
 fi
 
 for name in $locale $lang 'C'; do
-        if test -d "$prefix/$name/$suffix" ; then
+        if test -f "$prefix/$name/$suffix" ; then
                 intro_path="$prefix/$name/$suffix"
                 break;
         fi
 done
 
-/usr/libexec/gnome-initial-setup-player $intro_path/figures/gnome-yelp-intro.webm &
+echo $intro_path
+
+/usr/libexec/gnome-initial-setup-player $intro_path &
 yelp help:gnome-help/getting-started


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