I'm new to grass and running a newly compiled version of 7.02 on Ubuntu 14.04 Linux. When I start grass and then attempt to import a vector or raster file, it begins looking in my ~/ directory. It would be much more convenient if I could tell it to start looking in a subdirectory where I'm working. Is there a setting somewhere to change where the "import raster data" file browser starts looking ? I'm thinking something analogous to a "home" directory?
Thanks
J
--
Jim Maas
On Tue, Jan 5, 2016 at 11:41 AM, Jim Maas <j.maas@uea.ac.uk> wrote:
When I start grass and then attempt to import a vector or raster file, it
begins looking in my ~/ directory. It would be much more convenient if I
could tell it to start looking in a subdirectory where I'm working. Is
there a setting somewhere to change where the "import raster data" file
browser starts looking ? I'm thinking something analogous to a "home"
directory?
The GUI dialog opens in the current working directory (result of `pwd` or
$PWD). It is the current working dir of GUI, i.e. the one which was current
when g.gui was started (e.g. automatically during start of GRASS GIS).
If you change dir in terminal, GUI doesn't see this (the process is
Independent). You can, however, change the working dir for GUI, e.g. by
typing cd into the GUI Command Console.
Let us know if this was helpful info.
Vaclav
Thanks for this, however it seems to work for the current session only. If I save the file and exit, shutting down grass completely, and then it start it again, it reverts to ~/. Am I doing something wrong?
Thanks,
J
On 05/01/16 21:17, Veronica Andreo wrote:
Hi
2016-01-05 15:42 GMT-03:00 Vaclav Petras <wenzeslaus@gmail.com <mailto:wenzeslaus@gmail.com>>:
On Tue, Jan 5, 2016 at 11:41 AM, Jim Maas <j.maas@uea.ac.uk
<mailto:j.maas@uea.ac.uk>> wrote:
When I start grass and then attempt to import a vector or
raster file, it begins looking in my ~/ directory. It would
be much more convenient if I could tell it to start looking in
a subdirectory where I'm working. Is there a setting
somewhere to change where the "import raster data" file
browser starts looking ? I'm thinking something analogous to a
"home" directory?
The GUI dialog opens in the current working directory (result of
`pwd` or $PWD). It is the current working dir of GUI, i.e. the one
which was current when g.gui was started (e.g. automatically
during start of GRASS GIS).
If you change dir in terminal, GUI doesn't see this (the process
is Independent). You can, however, change the working dir for GUI,
e.g. by typing cd into the GUI Command Console.
You can also change the working directory in the GUI. Go to Settings --> GRASS working environment --> Change working directory
Best,
Vero
--
Dr. Jim Maas
On Wed, Jan 6, 2016 at 10:02 AM, Jim Maas <j.maas@uea.ac.uk> wrote:
Thanks for this, however it seems to work for the current session only.
If I save the file and exit, shutting down grass completely, and then it
start it again, it reverts to ~/. Am I doing something wrong?
No you are not, this is how it is meant to behave. It uses whatever
directory is the current one when started. Usually if you start application
from menu or icon it gets user's home as the current directory. If you open
terminal it is set to your home directory unless you did some special
settings. If you cd in the terminal somewhere and then run GRASS, it will
take the current directory.
Ubuntu shows recent directories in the GUI if you use the cd command with
parameters in the GUI Command Console (not different behavior for cd in the
real command line). For terminal you can make an aliases for cds to you
favorite directories.
In theory, GRASS GIS could remember the last directory used but it would be
inconsistent with behavior will all the other tools. It might be more
applicable for GUI but there it might be better to remember several
recently used directories rather than change the default in the file
dialog. You can open a ticket [1] to suggest this improvement and discuss
it more.
Vaclav
[1] https://trac.osgeo.org/grass/