[GRASS-dev] [GRASS GIS] #3959: Interface needs to warn that directory must be created before start

#3959: Interface needs to warn that directory must be created before start
-------------------------+-------------------------
Reporter: jidanni | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: trivial | Milestone:
Component: Startup | Version: unspecified
Keywords: | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
Yes, file:///usr/share/doc/grass-doc/html/helptext.html#-selecting-the-
gis-database-directory warns that
directories must already exist before starting the program. However, that
warning needs also to appear when the user first does
  $ grass
At "Grass needs a directory..."

It needs to tell the user to "Quit. Make the directory with mkdir, etc.
And start again.

(Since for some reason the program is unable to create directories.)

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

#3959: Interface needs to warn that directory must be created before start
--------------------------+-----------------------------------
  Reporter: jidanni | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: trivial | Milestone:
Component: Startup | Version: unspecified
Resolution: | Keywords: init grass.py default
       CPU: Unspecified | Platform: Unspecified
--------------------------+-----------------------------------
Changes (by wenzeslaus):

* keywords: => init grass.py default

Comment:

I also prefer if the situation is resolved automatically in general, but
I'm not sure if that should be the case in command line startup. The
message should suggest next steps, but creating a directory where all
user's data is stored (not just some temporary dump directory) might be
little too much initiative taken by a command line program because user
may expect better control.

When you start GUI, it does create this directory by default, but it will
in the future. That's however different from command line I think.

Therefore, I'm for improving the message (perhaps even explaining the
purpose of that directory better) but not changing the behavior.

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

#3959: Interface needs to warn that directory must be created before start
--------------------------+-----------------------------------
  Reporter: jidanni | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: trivial | Milestone:
Component: Startup | Version: unspecified
Resolution: | Keywords: init grass.py default
       CPU: Unspecified | Platform: Unspecified
--------------------------+-----------------------------------

Comment (by jidanni):

Indeed, with no DISPLAY,
{{{
$ grass
Starting GRASS GIS...
WARNING: It appears that the X Windows system is not active.
A graphical based user interface is not supported.
(DISPLAY variable is not set.)
Switching to text based interface mode.

Hit RETURN to continue.

ERROR: Path '/home/dyy/<UNKNOWN>/<UNKNOWN>' doesn't exist
Exiting...
}}}
That final "ERROR: Path '/home/dyy/<UNKNOWN>/<UNKNOWN>' doesn't exist" is
too abrupt too.

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