[GRASS-dev] [GRASS GIS] #560: WinGRASS not deleting temp ppm files from map display

GRASS GIS trac at osgeo.org
Tue May 28 19:47:32 PDT 2013

#560: WinGRASS not deleting temp ppm files from map display
 Reporter:  isaacullah                  |       Owner:  grass-dev@…              
     Type:  defect                      |      Status:  new                      
 Priority:  critical                    |   Milestone:  6.4.3                    
Component:  Display                     |     Version:  6.4.0 RCs                
 Keywords:  v.digit ppm temp, wingrass  |    Platform:  MSWindows XP             
      Cpu:  x86-32                      |  

Comment(by glynn):

 Replying to [comment:22 hamish]:

 > Ok, if $GISRC is custom you'd get tmp files in weird places. (render.py
 could test if the getenv string started with "/tmp/grassX-" before using
 that, otherwise use $TMPDIR?)

 The init script uses TMPDIR or TEMP or tempfile.gettempdir(), and only
 falls back to /tmp as the last resort.

 > > Most uses of G_tempfile() are wrong
 > what's the potential downside of that? why "wrong" instead of
 > i.e. is it theoretically wrong or practically wrong?

 If /tmp (or $TMPDIR) is on a different filesystem to the mapset, it's
 likely to be faster, e.g. /tmp is likely to be on a local disc even if the
 mapset is on an NFS or CIFS share.

Ticket URL: <https://trac.osgeo.org/grass/ticket/560#comment:23>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list