[GRASS-dev] [GRASS GIS] #1829: Allow user to override MAPSET ownership check

GRASS GIS trac at osgeo.org
Wed Feb 20 02:21:19 PST 2013


#1829: Allow user to override MAPSET ownership check
-------------------------+--------------------------------------------------
 Reporter:  marisn       |       Owner:  grass-dev@…              
     Type:  enhancement  |      Status:  new                      
 Priority:  minor        |   Milestone:  7.0.0                    
Component:  Startup      |     Version:  svn-trunk                
 Keywords:               |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by martinl):

 Replying to [comment:2 wenzeslaus]:
 > However, I don't know how to support this in GUI.
 >
 > 1) It is env variable not gisenv variable, so it is per-process. GUI
 cannot set it for command line. Two solutions:
 >  * set the variable on grass start-up (the safe way, but still, I don't
 know how to transfer the wxGUI settings to start-up script)
 >  * change this to gisenv variable (consequences?)

 I could comment it in the sense how it's done for `GRASS_ADDON_PATH`
 variable (menu: File->Launch script). If the script is not in the path,
 the GUI updates loaded environmental variable
 (`os.environ['GRASS_ADDON_PATH']=`) and updates `.grass7/basrc` (or
 `GRASS7\env.bat` on MS Windows). This file is loaded by the initialization
 script. Drawback: if you quit GUI and launch it again, the variable is
 lost -  you need to restart GRASS (launch initialization script which
 loads `bashrc` or `env.bat` file).

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1829#comment:3>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list