You are not logged in.
Abiword sometimes want to launch a browser. How can we set this browser. It seems to ignore BROWSER environment variable (contrary to what I have googled). In my situation it opened opera, having found no other solution that to uninstall opera then it use firefox (although I also have chromium installed). How abiword decide this?
Last edited by olive (2011-08-08 20:49:38)
Offline
That's weird: http://abiword.com/wiki/FAQ/Setting_the_default_browser
Have you tried https://bugs.launchpad.net/ubuntu/+sour … +bug/69069 ?
I have no idea if Arch uses the same commands as Ubuntu.
I've read that when abiword is started from terminal (as opposed to starting from the menu) it respects the $BROWSER settings.
Last edited by karol (2011-08-08 10:13:29)
Offline
The thread on Ubuntu is very old. I use icewm (no desktop). But I have tried also gconf-editor, no effect. Put a sensible-browser symllink to chromium in my PATH, no effect.
I have done this dirty check
grep BROWSER $(pacman -Ql abiword | cut -d ' ' -f 2)
and found no matches. If abiword wanted to check the BROWSER environment variable, it should IMHO have the string BROWSER coded somewhere (unless it store in a very weird way or come from another library). Moreover the archlinux package does not compile:
g++: error: unrecognized option '--no-undefined'
make[3]: *** [abiword] Error 1
Last edited by olive (2011-08-08 10:21:58)
Offline
And if it somehow compiles you may find out that https://bugs.archlinux.org/task/23818
Anyone tried using the Windows version under wine? :-P
Offline
No solution from my side, but the BROWSER thing is hardcoded in the go-file.c:
/* 1) Check BROWSER env var */
browser = check_program (getenv ("BROWSER"));
if (browser == NULL) {
static char const * const browsers[] = {
"sensible-browser", /* debian */
"epiphany", /* primary gnome */
"galeon", /* secondary gnome */
"encompass",
"firefox",
"mozilla-firebird",
"mozilla",
"netscape",
"konqueror",
"xterm -e w3m",
"xterm -e lynx",
"xterm -e links"
};
unsigned i;
for (i = 0 ; i < G_N_ELEMENTS (browsers) ; i++)
if (NULL != (browser = check_program (browsers[i])))
break;
}Correction: some lines above it says
#ifdef GOFFICE_WITH_GNOME
gnome_url_show (url, &err);
return err;
#elseCorrection2:
For me, gnome_url_show respects the default browser i specified with
gnome-control-center infoCorrection 3: If you don't use gnome 3 / gnome-control-center, here is a diff of my ~/.local/share/applications/mimeapps.list, when switching between firefox and chromium as the default browser:
--- l1 2011-08-08 16:25:56.705667111 +0200
+++ l2 2011-08-08 16:26:09.522487838 +0200
@@ -1,6 +1,6 @@
[Added Associations]
-x-scheme-handler/http=chromium.desktop;firefox.desktop;epiphany.desktop;
+x-scheme-handler/http=firefox.desktop;chromium.desktop;epiphany.desktop;
x-scheme-handler/mailto=evolution.desktop;userapp-Evolution-Z74ZUV.desktop;
text/calendar=evolution.desktop;scribes.desktop;
audio/x-vorbis+ogg=vlc.desktop;rhythmbox.desktop;totem.desktop;
@@ -32,7 +32,7 @@
application/x-designer=gedit.desktop;
[Default Applications]
-x-scheme-handler/http=firefox.desktop
+x-scheme-handler/http=chromium.desktop
image/jpeg=wine-extension-jfif.desktop
image/png=done-eog.desktop
application/xml=gedit.desktopLast edited by Wey (2011-08-08 14:30:22)
Offline
@Wey Defining x-scheme-handler/http and x-scheme-handler/https does indeed work (in mimeapps.list or defaults.list), thank you. I wonder if these files are thoroughly documented somewhere. I think I will start another post for this.
Edited: @Wey rethanks for the additional information!
Last edited by olive (2011-08-09 18:43:05)
Offline
Glad to hear. Regarding the default applications, have a look at the wiki and the corresponding freedesktop article.
p. s.: Regarding post #3, pacman has a quiet switch:
pacman -Qql abiwordwhich saves the hassle of
pacman -Ql abiword | cut -d ' ' -f 2Last edited by Wey (2011-08-08 22:16:21)
Offline