patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Alyssa Ross <hi@alyssa.is>
To: colby@colbyt.com
Cc: "devel@spectrum-os.org" <devel@spectrum-os.org>
Subject: Re: Cosmic Progress
Date: Wed, 15 Jul 2026 20:25:21 +0200	[thread overview]
Message-ID: <87bjc8qfe6.fsf@alyssa.is> (raw)
In-Reply-To: <JAsM-02CtRbzk3BAhPJTKem5i461EveOebZEikS_2-gMydhpj1nijHteD85ENwm5Ue9pF0xvptgJWO2WskqLoUEYS78G5V-Xeb3S5__ibuE=@colbyt.com>

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

colby@colbyt.com writes:

> Not sure why this email didn't send but trying again from my regular address! -- thanks for all the great updates - so speedy!
>
> On Saturday, July 11th, 2026 at 1:32 AM, CCT <cct@protonmail.com> wrote:
>
>> Thank you for posting this. Since our last conversation, I’ve been further prototyping a COSMIC-based downstream of Spectrum for PolymerOS, so there is useful overlap here.
>> PolymerOS currently replaces the standard panel and dock with custom surfaces and carries several small cosmic-comp changes for trust decorations, presence attestation, and compositor readiness. I’ve attached screenshots from two stages of the prototype.
>>
>> A few notes and questions:
>>
>> - Immutable configuration: COSMIC’s configuration code attempts to write defaults when loading. Because our /etc/xdg is immutable, we currently seed a writable runtime copy from an administrator-owned immutable baseline. Is there an intended COSMIC location or pattern for this?

From what I've saw in my work with it, COSMIC stuff only *requires* an
empty configuration directory to exist,
e.g. etc/xdg/cosmic/com.system76.CosmicComp/v1, so I just created some
empty directories in the Makefile.  None of the files within need to
exist, and it doesn't seem to mind if it can't write those files when
it's running.  I'd be interested to hear if you see otherwise.

>> - Socket and readiness: Our separately supervised services need a stable Wayland socket path and an explicit signal that the compositor is ready. Is the intended long-term API an absolute socket path supplied to cosmic-comp, potentially followed by service-manager socket activation? Would COSMIC accept a service-manager-neutral readiness signal, such as writing once to an inherited file descriptor, so s6-based systems do not need a downstream patch?

This is also already addressed in my series.  s6 now comes with a
program that translates systemd readiness notification into s6 readiness
notification, so we use that.  It only required a small bug fix that has
now been accepted by s6 upstream.

As for the Wayland socket, I aim to get cosmic-comp upstream to either
support creating the Wayland socket on a given absolute path (which is
what the series currently does), or to support being started with a
listening Wayland socket file descriptor.  My first PR for the former
has already been accepted by wayland-rs, but further progress requires a
release of those libraries so Smithay can use that functionality.

>> - QEMU and VNC: The desktop is usable with software rendering, without making virgl mandatory. We would prefer both software and accelerated modes to remain supported. We normally use hardware acceleration, while software rendering is valuable for testing compositor security decorations and for headless builders.

I think it should be fine as long as you have Mesa's software rendering
drivers available on your host.  (hardware.graphics.enable on NixOS —
despite the name it's not necessary to have any actual graphics hardware
for that to work, the option just needs to be enabled so the drivers are
installed.)  If that doesn't work, let me know and we can see what can
be done.

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

  reply	other threads:[~2026-07-15 18:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <TeTvDa-_spqDywetYTA2Q9lerfc1R9Im8mr_pNkLqH6jHrxwcpI0nneqvUV0aw6I0eGYYhdAYjfPjTDjV1bhr3txpmLya6w_C6gnmVRTFv8=@protonmail.com>
2026-07-13 18:59 ` Cosmic Progress colby
2026-07-15 18:25   ` Alyssa Ross [this message]
2026-07-30 19:20     ` colbyt

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=87bjc8qfe6.fsf@alyssa.is \
    --to=hi@alyssa.is \
    --cc=colby@colbyt.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/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock

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).