summaryrefslogtreecommitdiffstats
path: root/about/about-mandriva
blob: 59c5bb83b7ea37400690f91b69e9e8ae046c5f19 (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 Mandriva"
exit 1