@@ -20,7 +20,7 @@ will be used if graphical browsers are not available or an X11 display isn't
2020available. If text-mode browsers are used, the calling process will block until
2121the user exits the browser.
2222
23- If the environment variable :envvar: `BROWSER ` exists, it is interpreted as the
23+ If the environment variable :envvar: `! BROWSER ` exists, it is interpreted as the
2424:data: `os.pathsep `-separated list of browsers to try ahead of the platform
2525defaults. When the value of a list part contains the string ``%s ``, then it is
2626interpreted as a literal browser command line to be used with the argument URL
@@ -97,7 +97,7 @@ The following functions are defined:
9797
9898 Setting *preferred * to ``True `` makes this browser a preferred result for
9999 a :func: `get ` call with no argument. Otherwise, this entry point is only
100- useful if you plan to either set the :envvar: `BROWSER ` variable or call
100+ useful if you plan to either set the :envvar: `! BROWSER ` variable or call
101101 :func: `get ` with a nonempty argument matching the name of a handler you
102102 declare.
103103
@@ -111,49 +111,49 @@ for the controller classes, all defined in this module.
111111+------------------------+-----------------------------------------+-------+
112112| Type Name | Class Name | Notes |
113113+========================+=========================================+=======+
114- | ``'mozilla' `` | :class: ` Mozilla('mozilla') ` | |
114+ | ``'mozilla' `` | `` Mozilla('mozilla') `` | |
115115+------------------------+-----------------------------------------+-------+
116- | ``'firefox' `` | :class: ` Mozilla('mozilla') ` | |
116+ | ``'firefox' `` | `` Mozilla('mozilla') `` | |
117117+------------------------+-----------------------------------------+-------+
118- | ``'epiphany' `` | :class: ` Epiphany('epiphany') ` | |
118+ | ``'epiphany' `` | `` Epiphany('epiphany') `` | |
119119+------------------------+-----------------------------------------+-------+
120- | ``'kfmclient' `` | :class: ` Konqueror() ` | \( 1) |
120+ | ``'kfmclient' `` | `` Konqueror() `` | \( 1) |
121121+------------------------+-----------------------------------------+-------+
122- | ``'konqueror' `` | :class: ` Konqueror() ` | \( 1) |
122+ | ``'konqueror' `` | `` Konqueror() `` | \( 1) |
123123+------------------------+-----------------------------------------+-------+
124- | ``'kfm' `` | :class: ` Konqueror() ` | \( 1) |
124+ | ``'kfm' `` | `` Konqueror() `` | \( 1) |
125125+------------------------+-----------------------------------------+-------+
126- | ``'opera' `` | :class: ` Opera() ` | |
126+ | ``'opera' `` | `` Opera() `` | |
127127+------------------------+-----------------------------------------+-------+
128- | ``'links' `` | :class: ` GenericBrowser('links') ` | |
128+ | ``'links' `` | `` GenericBrowser('links') `` | |
129129+------------------------+-----------------------------------------+-------+
130- | ``'elinks' `` | :class: ` Elinks('elinks') ` | |
130+ | ``'elinks' `` | `` Elinks('elinks') `` | |
131131+------------------------+-----------------------------------------+-------+
132- | ``'lynx' `` | :class: ` GenericBrowser('lynx') ` | |
132+ | ``'lynx' `` | `` GenericBrowser('lynx') `` | |
133133+------------------------+-----------------------------------------+-------+
134- | ``'w3m' `` | :class: ` GenericBrowser('w3m') ` | |
134+ | ``'w3m' `` | `` GenericBrowser('w3m') `` | |
135135+------------------------+-----------------------------------------+-------+
136- | ``'windows-default' `` | :class: ` WindowsDefault ` | \( 2) |
136+ | ``'windows-default' `` | `` WindowsDefault `` | \( 2) |
137137+------------------------+-----------------------------------------+-------+
138- | ``'macosx' `` | :class: ` MacOSXOSAScript('default') ` | \( 3) |
138+ | ``'macosx' `` | `` MacOSXOSAScript('default') `` | \( 3) |
139139+------------------------+-----------------------------------------+-------+
140- | ``'safari' `` | :class: ` MacOSXOSAScript('safari') ` | \( 3) |
140+ | ``'safari' `` | `` MacOSXOSAScript('safari') `` | \( 3) |
141141+------------------------+-----------------------------------------+-------+
142- | ``'google-chrome' `` | :class: ` Chrome('google-chrome') ` | |
142+ | ``'google-chrome' `` | `` Chrome('google-chrome') `` | |
143143+------------------------+-----------------------------------------+-------+
144- | ``'chrome' `` | :class: ` Chrome('chrome') ` | |
144+ | ``'chrome' `` | `` Chrome('chrome') `` | |
145145+------------------------+-----------------------------------------+-------+
146- | ``'chromium' `` | :class: ` Chromium('chromium') ` | |
146+ | ``'chromium' `` | `` Chromium('chromium') `` | |
147147+------------------------+-----------------------------------------+-------+
148- | ``'chromium-browser' `` | :class: ` Chromium('chromium-browser') ` | |
148+ | ``'chromium-browser' `` | `` Chromium('chromium-browser') `` | |
149149+------------------------+-----------------------------------------+-------+
150150
151151Notes:
152152
153153(1)
154154 "Konqueror" is the file manager for the KDE desktop environment for Unix, and
155155 only makes sense to use if KDE is running. Some way of reliably detecting KDE
156- would be nice; the :envvar: `KDEDIR ` variable is not sufficient. Note also that
156+ would be nice; the :envvar: `! KDEDIR ` variable is not sufficient. Note also that
157157 the name "kfm" is used even when using the :program: `konqueror ` command with KDE
158158 2 --- the implementation selects the best strategy for running Konqueror.
159159
@@ -163,6 +163,11 @@ Notes:
163163(3)
164164 Only on macOS platform.
165165
166+ .. versionadded :: 3.2
167+ A new :class: `!MacOSXOSAScript ` class has been added
168+ and is used on Mac instead of the previous :class: `!MacOSX ` class.
169+ This adds support for opening browsers not currently set as the OS default.
170+
166171.. versionadded :: 3.3
167172 Support for Chrome/Chromium has been added.
168173
@@ -171,9 +176,6 @@ Notes:
171176 Removed browsers include Grail, Mosaic, Netscape, Galeon,
172177 Skipstone, Iceape, and Firefox versions 35 and below.
173178
174- .. deprecated-removed :: 3.11 3.13
175- :class: `MacOSX ` is deprecated, use :class: `MacOSXOSAScript ` instead.
176-
177179Here are some simple examples::
178180
179181 url = 'https://docs.python.org/'
@@ -222,4 +224,4 @@ module-level convenience functions:
222224.. rubric :: Footnotes
223225
224226.. [1 ] Executables named here without a full path will be searched in the
225- directories given in the :envvar: `PATH ` environment variable.
227+ directories given in the :envvar: `! PATH ` environment variable.
0 commit comments