2011/2/24 doug <dougrb@...>
> On 24/02/11 12:16, doug wrote:
> > On 24/02/11 12:15, doug wrote:
> >> On 23/02/11 15:24, Benny Malengier wrote:
> >>> For linux:
> >>> xdg-open /home/benny/NAVWEB/index.html
> >>> opens the page with the default browser. So that is what
> >>> Gramps uses. You need to change it globabally somewhere
> >>> depending on your user interface (eg KDE in system settings
> >>> somewhere).
> >>> For MacOS X the open command is used, and something similar
> >>> on windows.
> >>> Benny
> >> <snip>
> >> I'm a bit stumped.
> >> I'm running two versions of Firefox on the PC: 64-bit
> >> system-wide (to be able to use my printer) and 32-bit local
> >> only (to run flashplayer applets).
> >> xdg-open ~/NAVWEB/index.html loads the 64-bit firefox.
> >> Otherwise in the file manager the run action for opening
> >> html files loads the local 32-bit firefox. The path is
> >> correct for the updated version of Firefox,
> >> i.e.<local-path>/firefox/firefox.
> >> However, "gramps" in a terminal fails to load the browser
> >> for Google Maps with the message:
> >> Error showing url: Failed to execute child process
> >> "<local-path>/firefox-32/firefox" (No such file or directory)
> >> that is, the previous version.
> >> Presumably the default browser is the system-wide one and
> >> the file manager (in Gnome and KDE) is already set to the
> >> current local path. So where is the obsolete local path
> >> being kept?
> >> Doug
> P.S. I've kludged a temporary fix by renaming the new path
> to the old path.
> But my question remains: where is the obsolete local path
> being kept?
Sorry, I looked at the code, and it seems everything is opened with xdg-open
If the python package 'webbrowser' is installed, then that is used to open
url's. So in python:
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import webbrowser
I would expect this to be installed on your box and perhaps causing the
error. If webbrowser is not installed, then the system path is searched for
a browser like this:
for browser in ['firefox', 'konqueror', 'epiphany',
prog = find_binary(browser)
But I expect this to not occur, and the above webbrowser package to be used
and returning an error.
> Free Software Download: Index, Search & Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT
> generated by your applications, servers and devices whether physical,
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> Gramps-users mailing list