Determining an operating system's default browser

Paul Boddie paul at boddie.org.uk
Fri Feb 10 06:51:01 EST 2006


John McMonagle wrote:
> On Thu, 2006-02-09 at 17:53 -0600, Larry Bates wrote:
> > You don't have to determine it.  Just os.startfile('page1.html')
> > and let the OS figure it out.
>
> Works great for Windows - not available on Unix though.

Take a look at the desktop module for similar functionality for KDE,
GNOME and the Mac OS X desktop environment (as well as Windows, of
course):

http://www.python.org/pypi/desktop

Paul




More information about the Python-list mailing list