diff options
author | B. Watson <yalhcru@gmail.com> | 2018-08-13 11:26:28 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-08-18 08:39:47 +0700 |
commit | 928d612ac5feeb0ca1feb9b4938cf209e11c1fce (patch) | |
tree | 66f3a4e2b445b9098646a3fe69f934197260fcc1 /development/bless/help_script.sh | |
parent | aad280b6459b93075af2c5f92ffc955adb24c7fc (diff) |
development/bless: Added (GUI hex editor).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/bless/help_script.sh')
-rw-r--r-- | development/bless/help_script.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/development/bless/help_script.sh b/development/bless/help_script.sh new file mode 100644 index 0000000000000..f841e96e7df89 --- /dev/null +++ b/development/bless/help_script.sh @@ -0,0 +1,39 @@ +#!/bin/sh + +# Script that loads help for Bless. Modified by B. Watson for +# slackbuilds.org. No idea if the gnome-help or yelp stuff really works, +# I haven't got either one installed. At least the user manual opens +# in an actual browser with this version of the script. + +xml_help="/usr/doc/bless-@VERSION@/user/bless-manual.xml" +html_help="/usr/doc/bless-@VERSION@/user/index.html" + +# try to get default browsers from GConf +GCONFTOOL=`which gconftool-2 2> /dev/null` + +if [[ -n $GCONFTOOL ]]; +then + help_browser=`$GCONFTOOL --get "/desktop/gnome/url-handlers/ghelp/command"` + if [[ -n "$help_browser" ]]; + then + help_browser=`echo "$help_browser" | cut -d' ' -f1` + fi + + http_browser=`$GCONFTOOL --get "/desktop/gnome/url-handlers/http/command"` + + if [[ -n "$http_browser" ]]; + then + http_browser=`echo "$http_browser" | cut -d' ' -f1` + fi +fi + +# some other browsers +yelp_browser=`which yelp 2> /dev/null` +firefox_browser=`which firefox 2> /dev/null` +mozilla_browser=`which mozilla 2> /dev/null` + +([[ -n $help_browser ]] && $help_browser $xml_help) || +([[ -n $yelp_browser ]] && $yelp_browser $xml_help) || +([[ -n $http_browser ]] && $http_browser $html_help) || +([[ -n $firefox_browser ]] && $firefox_browser $html_help) || +([[ -n $mozilla_browser ]] && $mozilla_browser $html_help) |