Ticket #559 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

wingrass stand-alone installer: MSys console doesn't work

Reported by: hamish Owned by: cnielsen
Priority: minor Milestone: 6.4.0
Component: Installation Version: 6.4.0 RCs
Keywords: wingrass Cc: grass-dev@…
Platform: MSWindows XP CPU: x86-32

Description

Hi,

with the new 6.4.0rc4 wingrass stand-alone installer (not osgeo4w) the blue "M" iconed "GRASS MSys console" menu item doesn't work. it flashes up a DOS box and then an xterm for a fleeting instant but then they disappear.

Hamish

ps- is there a way to automatically minimize the DOS box when launching GRASS? it just sort of sits there idle.

Change History

  Changed 4 years ago by cnielsen

  • cc grass-dev@… added
  • owner changed from grass-dev@… to cnielsen
  • status changed from new to assigned

I'll include the fix in the next version of the installer. For now you can substitute line 88 of msys.bat for these two:

if "x%*" == "x" start %WD%rxvt -backspacekey  -sl 2500 -fg %FGCOLOR% -bg %BGCOLOR% -sr -fn Courier-12 -tn msys -geometry 80x25 -e /bin/sh --login -i
if NOT "x%*" == "x" start %WD%rxvt -backspacekey  -sl 2500 -fg %FGCOLOR% -bg %BGCOLOR% -sr -fn Courier-12 -tn msys -geometry 80x25 -e /bin/sh --login -c "%*"

in reply to: ↑ description ; follow-up: ↓ 3   Changed 4 years ago by cnielsen

Replying to hamish:

ps- is there a way to automatically minimize the DOS box when launching GRASS? it just sort of sits there idle.

Yes this can be done in the creation of the shortcut (*.lnk) files.

SW_SHOWMINIMIZED will start it minimized

SH_HIDE should (I haven't tested it yet) start it but run it in the background (ie. hide it completely). Although there would be no extra window, it may hide error messages like the one that says wxdigit isn't working.

Which option should I implement?

in reply to: ↑ 2   Changed 4 years ago by mlennert

Replying to cnielsen:

Replying to hamish:

ps- is there a way to automatically minimize the DOS box when launching GRASS? it just sort of sits there idle.

Yes this can be done in the creation of the shortcut (*.lnk) files. SW_SHOWMINIMIZED will start it minimized SH_HIDE should (I haven't tested it yet) start it but run it in the background (ie. hide it completely). Although there would be no extra window, it may hide error messages like the one that says wxdigit isn't working. Which option should I implement?

Can this be altered by the user via the properties of the link ? If yes, then I would plead for SH_HIDE and then in case of problems we can tell the user to change that. If not, then we probably have not much of a choice and have to leave it with SW_SHOWMINIMIZED, unless there is a different way of starting GRASS which would allow debugging.

Other option: if there is a GRASS menu in the program menu, add a "Debug mode" entry which starts with the window apparent.

Moritz

  Changed 4 years ago by cnielsen

The installer won't accept SW_HIDE (SH_HIDE above was a typo), only SW_SHOWMINIMIZED, SW_SHOWMAXIMIZED, and SW_SHOWNORMAL. This has been implemented in the new installer which I'll post shortly.

  Changed 4 years ago by neteler

The new version provided by Colin is online: http://grass.osgeo.org/grass64/binary/mswindows/native/WinGRASS-6.4.0SVN-r36903-1-Setup.exe

Problem fixed?

Markus

  Changed 4 years ago by hamish

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.