patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Alyssa Ross <hi@alyssa.is>
To: Demi Marie Obenour <demiobenour@gmail.com>
Cc: devel@spectrum-os.org
Subject: Re: [PATCH 06/13] img/app: remove XDG_RUNTIME_DIR
Date: Mon, 01 Dec 2025 12:24:55 +0100	[thread overview]
Message-ID: <874iqawik8.fsf@alyssa.is> (raw)
In-Reply-To: <3c794137-990c-4b83-a633-baa425b8a911@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

  reply	other threads:[~2025-12-01 11:25 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-26 21:33 [PATCH 01/13] pkgs: gtk3: backport fix for unset XDG_RUNTIME_DIR Alyssa Ross
2025-11-26 21:33 ` [PATCH 02/13] pkgs: s6: backport s6-softlimit -P Alyssa Ross
2025-12-02 12:30   ` Alyssa Ross
2025-11-26 21:33 ` [PATCH 03/13] img/app: wayland-proxy-virtwl: move Wayland socket Alyssa Ross
2025-12-02 12:30   ` Alyssa Ross
2025-11-26 21:33 ` [PATCH 04/13] img/app: wayland-proxy-virtwl: run as non-root Alyssa Ross
2025-12-02 12:30   ` Alyssa Ross
2025-11-26 21:33 ` [PATCH 05/13] img/app: pipewire: move sockets out of XDG_RUNTIME_DIR Alyssa Ross
2025-12-02 12:30   ` Alyssa Ross
2025-11-26 21:33 ` [PATCH 06/13] img/app: remove XDG_RUNTIME_DIR Alyssa Ross
2025-12-01  5:55   ` Demi Marie Obenour
2025-12-01 11:24     ` Alyssa Ross [this message]
2025-12-01 19:05       ` Demi Marie Obenour
2025-12-02 12:30   ` Alyssa Ross
2025-11-26 21:34 ` [PATCH 07/13] img/app: wireplumber: run as non-root Alyssa Ross
2025-12-02 12:30   ` Alyssa Ross
2025-11-26 21:34 ` [PATCH 08/13] img/app: pipewire: disable D-Bus Alyssa Ross
2025-12-02 12:30   ` Alyssa Ross
2025-11-26 21:34 ` [PATCH 09/13] img/app: pipewire: stop fighting s6 over lockfiles Alyssa Ross
2025-12-02 12:30   ` Alyssa Ross
2025-11-26 21:34 ` [PATCH 10/13] img/app: pipewire: run as non-root Alyssa Ross
2025-12-02 12:30   ` Alyssa Ross
2025-11-26 21:34 ` [PATCH 11/13] img/app: dbus: create socket outside daemon Alyssa Ross
2025-12-02 12:30   ` Alyssa Ross
2025-11-26 21:34 ` [PATCH 12/13] img/app: add application user Alyssa Ross
2025-12-02 12:30   ` Alyssa Ross
2025-11-26 21:34 ` [PATCH 13/13] img/app: run applications as non-root Alyssa Ross
2025-12-01  5:58   ` Demi Marie Obenour
2025-12-01 11:31     ` Alyssa Ross
2025-12-02 12:30   ` Alyssa Ross
2025-12-02 12:30 ` [PATCH 01/13] pkgs: gtk3: backport fix for unset XDG_RUNTIME_DIR Alyssa Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874iqawik8.fsf@alyssa.is \
    --to=hi@alyssa.is \
    --cc=demiobenour@gmail.com \
    --cc=devel@spectrum-os.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).