summaryrefslogtreecommitdiffstats
path: root/about/about-mageia
blob: 6f981c09d81efaa7f0645aa41cdee085cf9284fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
if [ "x$GNOME_DESKTOP_SESSION_ID" != "x" -a -x /usr/bin/yelp ]; then
	www_browser="/usr/bin/yelp"
else
	www_browser="xdg-open"
fi

for lang in `echo $LANG:$LANGUAGE | tr ':' ' ' | cut -d'_' -f1` ; do
 file="/usr/share/mdk/about/index-$lang.html"
 if [ -f "$file" ]; then
   $www_browser $file   
   exit 0
 fi
done

if [ -f /usr/share/mdk/about/index.html ]; then
 $www_browser /usr/share/mdk/about/index.html
 exit 0
fi

echo "file not found for about Mageia"
exit 1