HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Webhttrack starts wrong browser
Author: jamkomo
Date: 02/06/2009 12:33
 
> I have firefox set as my default browser in ubuntu
> hardy heron.  However when webhttrack starts up, it
> starts up Opera, which I installed some time ago to
> test how a site displays and never uninstalled. When
> webhttrack starts up, it tells me that it's
> launching the "regular" browser, which is not
> correct:
> 
> jamkomo@Karnak:~/map$ /usr/bin/webhttrack(20527):
> launching /usr/bin/x-www-browser
> /usr/bin/webhttrack(20527): spawning regular
> browser..
> opera: X Shared memory extension is not available.
> ZPixmap not supported
> /usr/bin/webhttrack(20527): browser exited
> /usr/bin/webhttrack: line 154: 20542 Killed         
>         ${BINPATH}/htsserver "${DISTPATH}/" path
> "${HOME}/websites" lang "${LANGN}" $@
> 

Additional Information: I read the message I previously posted, and noted that
it said launching /usr/bin/x-www-browser.  On my Ubuntu machine that is a link
not to the default browser but to opera: 
lrwxrwxrwx 1 root root 31 2008-03-27 23:56 /usr/bin/x-www-browser ->
/etc/alternatives/x-www-browser*
and that is Opera.

I looked for a httrack.conf file in etc, but no conf file existed. 

Turning instead to webhttrack script in /usr/bin I see it finds x-www-browser
via a SRCHBROWSEREXE variable. It appears one way to select firefox is to move
firefox to the front of the list before x-www-browser.  

That's not very clean but works for my purposes.

Testing it:
jamkomo@Karnak:~$ /usr/bin/webhttrack(32277): launching /usr/bin/firefox
/usr/bin/webhttrack(32277): waiting for browser to terminate..

Works OK. It launches firefox connected to port 8081/tcp, and I can start a
new project. 

However the default launcher doesn't start this way. It starts with this
string: "webhttrack browse" which gives me an error. I can change it to just
"webhttrack," but is that the correct approach?
 
Reply Create subthread


All articles

Subject Author Date
Webhttrack starts wrong browser

02/06/2009 11:47
Re: Webhttrack starts wrong browser

02/06/2009 12:33
Re: Webhttrack starts wrong browser

02/06/2009 12:56
Re: Webhttrack starts wrong browser

10/15/2012 00:36




9

Created with FORUM 2.0.11