[GRASS-git] [OSGeo/grass] 171db2: init: Start shell only with TTY (#768)

Vaclav Petras noreply at github.com
Wed Jul 15 20:53:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: 171db2e53ff3e6e3dc524be19ee54bd021aa0d35
      https://github.com/OSGeo/grass/commit/171db2e53ff3e6e3dc524be19ee54bd021aa0d35
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2020-07-15 (Wed, 15 Jul 2020)

  Changed paths:
    M gui/wxpython/lmgr/frame.py
    M lib/init/grass.py

  Log Message:
  -----------
  init: Start shell only with TTY (#768)

Start the (sub-)shell only when running in an interactive terminal (TTY).
Without checking this, the start fails in contexts when terminal is not available,
for example, running command from Alt+F2 dialog on many Linux distributions.
The same situation can be created using the nohup command.

A failure to retrieve shell PID from gisenv is no longer considered an error
for cases when shell was not started.

The interactive shell can be forced regadless of the TTY by using --text in the command line.

This solves Trac ticket 3295 (GRASS GIS fails to start without terminal).
https://trac.osgeo.org/grass/ticket/3295




More information about the grass-commit mailing list