[GRASS-dev] [GRASS GIS] #559: wingrass stand-alone installer: MSys console doesn't work

#559: wingrass stand-alone installer: MSys console doesn't work
--------------------------+-------------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: minor | Milestone: 6.4.0
Component: Installation | Version: 6.4.0 RCs
Keywords: wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
--------------------------+-------------------------------------------------
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.

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

#559: wingrass stand-alone installer: MSys console doesn't work
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: cnielsen
      Type: defect | Status: assigned
  Priority: minor | Milestone: 6.4.0
Component: Installation | Version: 6.4.0 RCs
Resolution: | Keywords: wingrass
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Changes (by cnielsen):

  * status: new => assigned
  * owner: grass-dev@lists.osgeo.org => cnielsen
* cc: grass-dev@lists.osgeo.org (added)

Comment:

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 "%*"
}}}

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

#559: wingrass stand-alone installer: MSys console doesn't work
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: cnielsen
      Type: defect | Status: assigned
  Priority: minor | Milestone: 6.4.0
Component: Installation | Version: 6.4.0 RCs
Resolution: | Keywords: wingrass
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Comment (by cnielsen):

Replying to [ticket:559 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?

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

#559: wingrass stand-alone installer: MSys console doesn't work
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: cnielsen
      Type: defect | Status: assigned
  Priority: minor | Milestone: 6.4.0
Component: Installation | Version: 6.4.0 RCs
Resolution: | Keywords: wingrass
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Comment (by mlennert):

Replying to [comment:2 cnielsen]:
> Replying to [ticket:559 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

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

#559: wingrass stand-alone installer: MSys console doesn't work
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: cnielsen
      Type: defect | Status: assigned
  Priority: minor | Milestone: 6.4.0
Component: Installation | Version: 6.4.0 RCs
Resolution: | Keywords: wingrass
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Comment (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.

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

#559: wingrass stand-alone installer: MSys console doesn't work
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: cnielsen
      Type: defect | Status: assigned
  Priority: minor | Milestone: 6.4.0
Component: Installation | Version: 6.4.0 RCs
Resolution: | Keywords: wingrass
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Comment (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

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

#559: wingrass stand-alone installer: MSys console doesn't work
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: cnielsen
      Type: defect | Status: closed
  Priority: minor | Milestone: 6.4.0
Component: Installation | Version: 6.4.0 RCs
Resolution: fixed | Keywords: wingrass
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Changes (by hamish):

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

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