[GRASS-dev] [GRASS GIS] #1086: set_browser

#1086: set_browser
----------------------+-----------------------------------------------------
Reporter: lucadelu | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Startup | Version: svn-trunk
Keywords: | Platform: Linux
      Cpu: All |
----------------------+-----------------------------------------------------
grass7 doesn't start without a textual browser. I add links, lynx, w3c in
the attachment

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1086&gt;
GRASS GIS <http://grass.osgeo.org>

#1086: set_browser
-----------------------+----------------------------------------------------
  Reporter: lucadelu | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: critical | Milestone: 7.0.0
Component: Startup | Version: svn-trunk
Resolution: fixed | Keywords:
  Platform: Linux | Cpu: All
-----------------------+----------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => fixed

Comment:

Patch applied, thanks.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1086#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

Hi,
current trunk's grass.py HTML browser setup code is using wrong
approach on Linux and Windows.

If GRASS_HTML_BROWSER is unset:
On Linux it should at first check for presence of xdg-open command
from Portland project [1] and only in case of Portland absence start
"Guess the browser" game. xdg-open will use user's preffered browser;
Similar on Windows, it should use "explorer" as default. No guessing
required. [2]

Maris.

1. http://portland.freedesktop.org/wiki/
2. http://trac.osgeo.org/grass/ticket/980

2010/6/8, GRASS GIS <trac@osgeo.org>:

#1086: set_browser
-----------------------+----------------------------------------------------
  Reporter: lucadelu | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: critical | Milestone: 7.0.0
Component: Startup | Version: svn-trunk
Resolution: fixed | Keywords:
  Platform: Linux | Cpu: All
-----------------------+----------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => fixed

Comment:

Patch applied, thanks.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1086#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

On Tue, Jun 8, 2010 at 6:08 PM, Maris Nartiss <maris.gis@gmail.com> wrote:

Hi,
current trunk's grass.py HTML browser setup code is using wrong
approach on Linux and Windows.

If GRASS_HTML_BROWSER is unset:
On Linux it should at first check for presence of xdg-open command
from Portland project [1] and only in case of Portland absence start
"Guess the browser" game. xdg-open will use user's preffered browser;
Similar on Windows, it should use "explorer" as default. No guessing
required. [2]

Maris.

1. http://portland.freedesktop.org/wiki/
2. http://trac.osgeo.org/grass/ticket/980

If you know, please submit a fix,

thanks
Markus

As my Python skeeelZ are not 1337 yet, let's hope I have not messed up
anything with r42537

Maris.

2010/6/8, Markus Neteler <neteler@osgeo.org>:

On Tue, Jun 8, 2010 at 6:08 PM, Maris Nartiss <maris.gis@gmail.com> wrote:

Hi,
current trunk's grass.py HTML browser setup code is using wrong
approach on Linux and Windows.

If GRASS_HTML_BROWSER is unset:
On Linux it should at first check for presence of xdg-open command
from Portland project [1] and only in case of Portland absence start
"Guess the browser" game. xdg-open will use user's preffered browser;
Similar on Windows, it should use "explorer" as default. No guessing
required. [2]

Maris.

1. http://portland.freedesktop.org/wiki/
2. http://trac.osgeo.org/grass/ticket/980

If you know, please submit a fix,

thanks
Markus