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

GRASS GIS trac at osgeo.org
Tue Jan 29 00:36:56 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 mmetz):

 Replying to [comment:4 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.

 Here, on Linux, I always get a CLI, and sometimes also a GUI, if I wish to
 have one. I don't get a GUI without a CLI.


 >
 > 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.

 When I click the `Quit GRASS GIS` button, both the GUI and the CLI GRASS
 session are closed.
 >
 > 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.

 This is what happens for me: the `Quit GRASS GIS` button returns me to my
 own shell.

 Hint: type `exit` in the CLI, this closes the GUI and returns you to your
 own shell.

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



More information about the grass-dev mailing list