[Feat] Support BROWSER environmental variable #890
Labels
enhancement
New feature or request
good first issue
Good for newcomers
Python
Related code is in Python
Milestone
GRASS GIS should support, i.e., understand the environmental variable
BROWSER. Many other tools use it to set web browser and GRASS GIS should too. These include webbrowser package from Python standard library, Google Earth, or man:There is now
GRASS_HTML_BROWSERvariable whichlib/init/grass.pyuses to get a browser required by the user. A conservative solution (not changing the API) is to just use it as an override ofBROWSERand then use GRASS_HTML_BROWSER internally.The tricky part is that in some cases,
BROWSERcan be multiple commands or paths (see the webbrowser package documentation).Describe alternatives you've considered
GRASS_HTML_BROWSERonly internal variable and using onlyBROWSERin the interface. (This is easiest to implement. This and the following ones would need to be done before 8.0 release.)GRASS_HTML_BROWSERvariable completely in favor ofBROWSER(in all code). (I think this would be actually pretty good unless somebody has some use case which requiresGRASS_HTML_BROWSER.)Additional context
This suggestion was originally made as a part of Trac ticket 3964 by @jidanni. See also Trac ticket 3957 on issues with the browser variable.
The text was updated successfully, but these errors were encountered: