[GRASS-dev] [GRASS GIS] #3740: The GRASS session is "leaking" to the environment

GRASS GIS trac at osgeo.org
Mon Jan 28 13:57:39 PST 2019


#3740: The GRASS session is "leaking" to the environment
--------------------------+-------------------------
  Reporter:  pmav99       |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  Startup      |    Version:  svn-trunk
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  Linux
--------------------------+-------------------------

Comment (by pmav99):

 Replying to [comment:3 mmetz]:
 > Replying to [comment:2 pmav99]:
 > > OK, after writing `exit` on the console, the GRASS session finally
 exits.
 >
 > The script `run_gui.sh` calls grass77 which establishes a GRASS session
 on the command line. The GUI is only started with grass77 --gui, or if the
 stored settings indicate that the last time GRASS was started with a GUI.

 I am sorry but I think this is not accurate. Please correct me if I am
 wrong, but ''the very first time'' you run the `grass77` executable, you
 don't get the CLI, you get the GUI. At least that's what I observe. If you
 want to change the behavior you need to call `grass77` with the
 `--text/--gtext` argument. So the `--gui` argument is the default one, not
 the other way around.

 That being said, and I guess that this is the main issue here, the dialog
 you get when you press `ctrl+Q` is IMHO confusing. As far as I can tell,
 both the `Close GUI` and the `Quit GRASS GIS` button do the exact same
 thing, i.e. they return me to the GRASS shell, from which I need to `exit`
 in order to return to my regular shell. I could be wrong though. Perhaps
 there is some other difference which I don't know about.

 Nevertheless, I do find confusing that I have to Quit GRASS twice. Once in
 the GUI and once in the console. I would expect that the `Quit GRASS`
 button returns me to my own shell. If not, what is the point of having
 both that one and the `Close GUI` button?

 [[Image(https://i.imgur.com/NlLfc44.png)]]

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3740#comment:4>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list