Re: [PATCH 06/13] img/app: remove XDG_RUNTIME_DIR

Demi Marie Obenour
2025-12-01T19:05:44Z

[-- Attachment #1.1.1: Type: text/plain, Size: 1482 bytes --]

On 12/1/25 06:24, Alyssa Ross wrote:
> Demi Marie Obenour <demiobenour@gmail.com> writes:
>
>> On 11/26/25 16:33, Alyssa Ross wrote:
>>> Nothing uses this any more, and let's hope it stays that way, because
>>> it makes it difficult to run services as different users. Maybe we
>>> end up finding something that really needs it in the future, but it
>>> makes things much easier to avoid it for as long as we can.
>>>
>>> Older applications might not support WAYLAND_DISPLAY being absolute,
>>> but this has been changed in libwayland and GTK. We don't need to
>>> support arbitrarily old applications, and this problem will resolve
>>> itself over time.
>>
>> Applications may use XDG_RUNTIME_DIR for their own purposes. I believe
>> gpg-agent might use it to place its sockets. This does not mean
>> that Spectrum-provided sockets need to be in this directory, though.
>> I would set it to the standard /run/user/$UID where $UID is the user
>> ID of the application.
>>
>> If compatibility is a problem, bind mounts are an option.
>
> If $XDG_RUNTIME_DIR is not set applications should fall back to
> a replacement directory with similar capabilities and print a
> warning message.
>
> We certainly can still set it, but with no definitively known
> regressions, and the specification indicating it doesn't have to exist,
> I'm not going to block these changes on it.

+1 on not blocking.
--
Sincerely,
Demi Marie Obenour (she/her/hers)

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 7253 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]