Joe wrote:
> Joe wrote:
> > I'm using Gnome 2.14 and my Preferred Applications shows that Firefox is
> > my default web browser, but I suspect that webbrowser.py knows nothing
> > about Gnome.  This is not strictly a TG problem, but I'm hoping someone
> > can help.  Isn't there an easier way to access CatWalk?
> >
> OK, I figured out I could "setenv BROWSER firefox" and got it working.
> However, for daily use, I still think the toolbox startup method is
> rather cumbersome.
>
> Joe

>From looking at webbrowser.py it tests for links (and two other
text-only browsers) first if it is running inside a terminal. After
that it will pick up a graphical browser, and can be overriden as you
have done.

It looks like we can manually set _tryorder in the webbrowser module to
whatever list of browsers is compatible with our app. I just don't see
why there is no means of telling the module that you don't want a
terminal-based browser if you are in a terminal.

FWIW putting this somewhere before the call to webbrowser.open in
turbogears' base.py would fix the behavior and let you rename links,
but to make it function in a cross-platform manner we would basically
have to reimplement webbrowser.py sans stupid assumptions.

_tryorder=['mozilla-firefox','firefox']

-Adam


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to