get the temporary directory for sockets and PID files
Get the directory used by the handle to store temporary socket and PID files.
This is different from get_tmpdir, as we need shorter paths for sockets (due to the limited buffers of filenames for UNIX sockets), and get_tmpdir may be too long for them. Furthermore, sockets and PID files must be accessible to such background services started by libguestfs that may not have permission to access the temporary directory returned by get_tmpdir.
The environment variable XDG_RUNTIME_DIR controls the default value: If XDG_RUNTIME_DIR is set, then that is
the default. Else /tmp is the default.
| this |
A GuestfsSession object |
|
the returned string, or NULL on error |