aboutsummaryrefslogtreecommitdiff
path: root/development/bless/help_script.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-12-10 13:52:53 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-12-14 00:01:10 +0700
commit1e7521defbbda2c2691529a87fc06f8f1d328c14 (patch)
treeae1be2fea198df315860df94ec83f120886c9e93 /development/bless/help_script.sh
parentc4dda0923c4bdadb308b413116ac85b3ba9ed0a0 (diff)
development/bless: Various fixes.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/bless/help_script.sh')
-rw-r--r--development/bless/help_script.sh39
1 files changed, 4 insertions, 35 deletions
diff --git a/development/bless/help_script.sh b/development/bless/help_script.sh
index f841e96e7df8..f532f8aaf68f 100644
--- a/development/bless/help_script.sh
+++ b/development/bless/help_script.sh
@@ -1,39 +1,8 @@
#!/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.
+# slackbuilds.org. Ditched all the gconf, yelp, gnome-help stuff
+# and just use xdg-open for the HTML help in the user's default
+# browser.
-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)
+exec xdg-open /usr/doc/bless-@VERSION@/user/index.html