[GRASS-dev] [GRASS GIS] #1707: g.manual does not run html browser in background

#1707: g.manual does not run html browser in background
-------------------------+--------------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Default | Version: unspecified
Keywords: g.manual | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
In grass 6 g.manual doesn't launch html browser in the background so it is
blocking the gui (or command line). In grass 7 it doesn't block anything.

In grass 7, python script calls os.execlp. In grass 6, bash script is
used. If I add '&' at the end of the command (in
scripts/g.manual/g.manual, line 91) like this:

{{{
"$GRASS_HTML_BROWSER" file://"$DOC_BASE/$1.html" &
}}}

it works for me (using Ubuntu). I guess this not solution for all
platforms?

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

#1707: g.manual does not run html browser in background
-------------------------+--------------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Default | Version: unspecified
Keywords: g.manual | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by wenzeslaus):

Workaround implemented using
[http://docs.python.org/library/webbrowser.html webbrowser] from Standard
Python Library (only for start up page and location wizard, r52953).
System default web browser is started.

{{{
import webbrowser
webbrowser.open(filePath)
}}}

Alternatively for wxGUI it would be possible to use
[http://docs.wxwidgets.org/2.6.3/wx_miscellany.html#wxlaunchdefaultbrowser
wxLaunchDefaultBrowser].

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

#1707: g.manual does not run html browser in background
----------------------+-----------------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Docs | Version: unspecified
Keywords: g.manual | Platform: All
      Cpu: All |
----------------------+-----------------------------------------------------
Changes (by hamish):

  * platform: Unspecified => All
  * component: Default => Docs
  * cpu: Unspecified => All

Comment:

We tried that in the past, but had to revert it as it failed for people
using a text based html browser like lynx or links.

search the ML for earlier discussion of the issue.

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

#1707: g.manual does not run html browser in background
-----------------------+-------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 6.4.3
Component: Docs | Version: unspecified
Resolution: | Keywords: g.manual
       CPU: All | Platform: All
-----------------------+-------------------------

Comment (by neteler):

Is this still an issue in G6?

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

#1707: g.manual does not run html browser in background
-----------------------+-------------------------
  Reporter: annakrat | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.3
Component: Docs | Version: unspecified
Resolution: fixed | Keywords: g.manual
       CPU: All | Platform: All
-----------------------+-------------------------
Changes (by annakrat):

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

Comment:

Replying to [comment:3 neteler]:
> Is this still an issue in G6?

Quickly tested help from start up dialog, location wizard, main gui,
modeler - works ok.

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