Opened 12 years ago

Closed 9 years ago

#1707 closed defect (fixed)

g.manual does not run html browser in background

Reported by: annakrat Owned by: grass-dev@…
Priority: normal Milestone: 6.4.3
Component: Docs Version: unspecified
Keywords: g.manual Cc: grass-dev@…
CPU: All Platform: All

Description

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?

Change History (4)

comment:1 by wenzeslaus, 12 years ago

Workaround implemented using 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 wxLaunchDefaultBrowser.

comment:2 by hamish, 11 years ago

Component: DefaultDocs
CPU: UnspecifiedAll
Platform: UnspecifiedAll

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.

comment:3 by neteler, 9 years ago

Is this still an issue in G6?

in reply to:  3 comment:4 by annakrat, 9 years ago

Resolution: fixed
Status: newclosed

Replying to neteler:

Is this still an issue in G6?

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

Note: See TracTickets for help on using tickets.