On 10 March 2012, Ted Unangst <[email protected]> wrote:
> In both geeqie and R, the online help opens in abiword, which is
> so useless it's almost offensive. This is obviously a setting of
> some library somewhere far beyond my comprehension, but it's equally
> obvious I didn't pick this setting.
The following excerpt from geeqie-1.0/src/window.c seems relevant:
153 /*
154 * each set of 2 strings is one browser:
155 * the 1st is the binary to look for in the path
156 * the 2nd has 3 capabilities:
157 * NULL exec binary with html file path as command line
158 * string exec string and use results for command line
159 * !string use text following ! as command line, replacing optional
%s with html file path
160 */
161 static gchar *html_browsers[] =
162 {
163 /* Our specific script */
164 GQ_APPNAME_LC "_html_browser", NULL,
165 /* fd.o */
166 "xdg-open", NULL,
167 /* use fallbacks */
168 "firefox", NULL,
169 "konqueror", NULL,
170 "opera", "!opera --remote 'openURL(%s,new-page)'",
171 NULL, NULL
172 };
> 1. What do I change to open html help files in a useful program?
Something along the lines of:
xdg-mime default mozilla-firefox.desktop text/html
(you need to have a *.desktop file first). Or copy
/usr/local/share/examples/xdg-utils/xdg-open-hook.sh
in your PATH as xdg-open-hook, and edit it to suit your preferences.
> 2. Can we do something to make the default useful?
The whole XDG stuff is a huge mess. Perhaps add a note about that
to the FAQ? *shrug*
Regards,
Liviu Daia