Unix style for temporary directory environment variable(s) #8940

Closed
opened 2008-04-13 04:52:53 +02:00 by gsr b3d · 6 comments
Member

%%%Change supported enviroment variables for temporary directory to spread
custom in Unix.

See man environ or mktemp for TMPDIR, or if there must be two, one with higher
level of importance, name it accordingly, thus BLENDERTMPDIR, see man groff,
cvs-pserver or mimep for cases of application specific temporary dirs (or
cscope, cvs or git-config for own editor vars, man or git for own pager,
etc).

As bonus, fix typo in help message.%%%

%%%Change supported enviroment variables for temporary directory to spread custom in Unix. See man environ or mktemp for TMPDIR, or if there must be two, one with higher level of importance, name it accordingly, thus BLENDERTMPDIR, see man groff, cvs-pserver or mimep for cases of application specific temporary dirs (or cscope, cvs or git-config for own editor vars, man or git for own pager, etc). As bonus, fix typo in help message.%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Member

%%%This is not so much a patch, but integration decision stuff for platform manager. Let's hear what Kent says.
Note that the patch disables "TMP", whilst the comment says it checks both.%%%

%%%This is not so much a patch, but integration decision stuff for platform manager. Let's hear what Kent says. Note that the patch disables "TMP", whilst the comment says it checks both.%%%
Member

%%%The only thing I have to compare to is a Solaris system, but since this patch applies to non-Windows (actually, non-WIN32) systems, I googled man pages for FreeBSD and OSX. mktemp(1) refers to TMPDIR on all of those. My questions are why we would need to check separate variables, and why only on non-Windows machines? %%%

%%%The only thing I have to compare to is a Solaris system, but since this patch applies to non-Windows (actually, non-WIN32) systems, I googled man pages for FreeBSD and OSX. mktemp(1) refers to TMPDIR on all of those. My questions are why we would need to check separate variables, and why only on non-Windows machines? %%%
Author
Member

%%%I did not add that functionality, I just tried to unixify
what there was already. I also checked different man pages,
and they even mention posix2001 (about TMPDIR) and checked
multiple man pages to confirm the syntax if an app uses own
var (about going with BLENDERTMPDIR).

TMPDIR should go in. But why there was two? No idea, I just
tried to go with the flow and assume one was app specific
to allow more fine control of temp files. In that case, it
would make sense to make it for all OSes and if set, be
prefered over TEMP|TMPDIR.

Probably then it would be wise to set a clear policy for
future and leave the issue "100% solved". For example first
valid dir of BLENDERTMPDIR, .B.blend tmp dir user pref,
TMPDIR|TEMP, some hardcoded value as last resort.%%%

%%%I did not add that functionality, I just tried to unixify what there was already. I also checked different man pages, and they even mention posix2001 (about TMPDIR) and checked multiple man pages to confirm the syntax if an app uses own var (about going with BLENDERTMPDIR). TMPDIR should go in. But why there was two? No idea, I just tried to go with the flow and assume one was app specific to allow more fine control of temp files. In that case, it would make sense to make it for all OSes and if set, be prefered over TEMP|TMPDIR. Probably then it would be wise to set a clear policy for future and leave the issue "100% solved". For example first valid dir of BLENDERTMPDIR, .B.blend tmp dir user pref, TMPDIR|TEMP, some hardcoded value as last resort.%%%

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2014-08-03 10:59:50 +02:00

Thinks changed a lot since then, archiving.

Thinks changed a lot since then, archiving.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#8940
No description provided.