With I see 92 utilities that mention TMPDIR usage. Typically the behavior with such programs is that they assume TMPDIR=/tmp if the variable is not set.
The XDG base directory specification defines a number of other variables:
Code:
man -w -K TMPDIR
The XDG base directory specification defines a number of other variables:
You should not hard code "/var/run/user" anywhere.There is a single base directory relative to which user-specific data files should be written. This directory is defined by the environment variable $XDG_DATA_HOME.
There is a single base directory relative to which user-specific configuration files should be written. This directory is defined by the environment variable $XDG_CONFIG_HOME.
There is a single base directory relative to which user-specific state data should be written. This directory is defined by the environment variable $XDG_STATE_HOME.
There is a single base directory relative to which user-specific executable files may be written.
There is a set of preference ordered base directories relative to which data files should be searched. This set of directories is defined by the environment variable $XDG_DATA_DIRS.
There is a set of preference ordered base directories relative to which configuration files should be searched. This set of directories is defined by the environment variable $XDG_CONFIG_DIRS.
There is a single base directory relative to which user-specific non-essential (cached) data should be written. This directory is defined by the environment variable $XDG_CACHE_HOME.
There is a single base directory relative to which user-specific runtime files and other file objects should be placed. This directory is defined by the environment variable $XDG_RUNTIME_DIR.
Statistics: Posted by lindi — 2024-07-31 13:38 — Replies 1 — Views 38