Re: default web browser [was Re: program for file print preview]

Le mardi 23 décembre 2008 à 10:16 +0800, bill lam a écrit :
On Mon, 22 Dec 2008, Jean Bréfort wrote:
The code calling evince is in gtk+, not gnumeric:

settings = gtk_settings_get_for_screen (screen); 
g_object_get (settings, "gtk-print-preview-command", &preview_cmd, NULL);

This returns the value of GTK_PRINT_PREVIEW_COMMAND which is defined in gtk/

If you want to change that, you need to change the settings for the
default screen, apparently (I do not know how this is feasible). Note
that given the way things work, the program called for the preview is
responsible for deletint the temporary pdf and the print settings file,
see for 
more information.

Thanks Jean, this solved my preview problem.

I still have another problem is that gnumeric always use firefox as
web browser, eg. click the help / gnumeric on the web.  I have have
firefox installed, but I would like to use w3m as web browser. I
already export $BROWSER in ~/.profile
export BROWSER="/usr/bin/x-terminal-emulator -e /usr/bin/www-browser"
and www-browser is configured to link to /usr/bin/w3m. However
gnumeric seems ignore BROWSER envirnoment variable. So what should I

This depends on various parameters: which goffice version? Was goffice
compiled with GNOME support or not?
When compiled without gnome support, goffice-0.6.x tests for the
$BROWSER variable but I'm not sure that it would accept your variable. A
simple path to an executable should work, something as

Current development version just calls g_app_info_launch_default_for_uri
(eventually through a call to gtk_show_uri if present).



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]