Subject: Re: bug#75306: 31.0.50; Make `small-temporary-file-directory` variable obsolete

From: Björn Bidar <[email-masked]>
Date: Sun, 05 Jan 2025 00:16:43 +0200

Michael Albinus <[email-masked]> writes:

> Björn Bidar <[email-masked]> writes:
>
> Hi Björn,
>
>>> And in the Tramp case, you break an existing interface. Users have been
>>> instructed to change the value of small-temporary-file-directory when
>>> needed. See (info "(tramp) Frequently Asked Questions"), which documents
>>> a user problem reported on the <[email-masked]> ML.
>>
>> If the intend of the variable is the same as listed in the Tramp FAQ why
>> not set it by default to /run/user/<uid>?
>>
>> For such use cases using /run/user/<uid> is much better as it more
>> secure and on a ramdisk.
>
> Because it isn't portable. The Tramp manual gives just an example.

Portable across Unixes or Linux? For Linux /run/user is portable.
/var/run, which is symlinked to /run exists in BSD but not
/var/run/user.
However XDG_CACHE_HOME is already used in Tramp so using XDG_RUNTIME_DIR
should be a natural followup.