summaryrefslogtreecommitdiffstats
path: root/data/gnome-welcome-tour
blob: fcb9cd372b80ee15ed270a0aad96261c85a5d994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh

cfgdir=${XDG_CONFIG_DIR:-$HOME/.config}
prefix=/usr/share/help
suffix=gnome-help
full_locale=$LANG
locale=`echo $full_locale | sed -e 's/\..*//'`
lang=`echo $locale | sed -e 's/_.*//'`

rm -f $cfgdir/run-welcome-tour

if [ ! -d $cfgdir/yelp ]; then
        mkdir $cfgdir/yelp
        cat <<EOF >>$cfgdir/yelp/yelp.cfg
[documents/help%3Agnome-help]
geometry=(1024, 709)
EOF
fi

for name in $locale $lang 'C'; do
        if test -d "$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 &
yelp help:gnome-help/getting-started