fix: rename D-Bus name to dev.edu4rdshl.Strata; drop recursive theme reload

Two changes for 0.7.0:

BREAKING (D-Bus): the service is renamed from org.gnome.Strata to
dev.edu4rdshl.Strata. The org.gnome.* namespace is reserved for official
GNOME software; Strata is third-party, so it now uses the reverse-DNS of its
own domain (matching the strata@edu4rdshl.dev UUID). Bus name, object path
(/dev/edu4rdshl/Strata), and interface (dev.edu4rdshl.Strata.Manager) all
change. Daemon and extension are updated together; only external busctl
scripts / non-GNOME front-ends that hard-coded the old name need updating.
The GSettings schema (org.gnome.shell.extensions.strata) is unchanged - that
namespace is correct for GNOME Shell extension settings.

Fix recursion: the theme-context 'changed' handler reloaded light.css, but
load_stylesheet itself emits 'changed', so it fed back into itself and hit
"too much recursion" - flooding the journal and spinning the CPU on screen
unlock (which restyles widgets and fires 'changed'). The subscription is
removed; light.css is loaded once. Dark/light switching is unaffected (it is
the panel's class toggle, not this load). A GNOME Shell theme switch no
longer auto-re-applies the sheet, which is recoverable by re-enabling.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Eduard Tolosa 2026-05-26 19:20:12 -05:00
parent 3f32c19fd0
commit b41c9662cb
8 changed files with 40 additions and 44 deletions

View file

@ -24,9 +24,9 @@ manually if you're using a non-GNOME front-end.
## D-Bus interface
- **Bus name:** `org.gnome.Strata`
- **Object path:** `/org/gnome/Strata`
- **Interface:** `org.gnome.Strata.Manager`
- **Bus name:** `dev.edu4rdshl.Strata`
- **Object path:** `/dev/edu4rdshl/Strata`
- **Interface:** `dev.edu4rdshl.Strata.Manager`
| Member | Signature | Notes |
|---|---|---|
@ -51,15 +51,15 @@ manually if you're using a non-GNOME front-end.
./target/release/strata-daemon
# In another terminal:
busctl --user call org.gnome.Strata /org/gnome/Strata \
org.gnome.Strata.Manager GetHistory uu 0 10
busctl --user call dev.edu4rdshl.Strata /dev/edu4rdshl/Strata \
dev.edu4rdshl.Strata.Manager GetHistory uu 0 10
# Submit text:
busctl --user call org.gnome.Strata /org/gnome/Strata \
org.gnome.Strata.Manager SubmitItem say "text/plain;charset=utf-8" 5 104 101 108 108 111
busctl --user call dev.edu4rdshl.Strata /dev/edu4rdshl/Strata \
dev.edu4rdshl.Strata.Manager SubmitItem say "text/plain;charset=utf-8" 5 104 101 108 108 111
# Listen for new items:
busctl --user monitor org.gnome.Strata
busctl --user monitor dev.edu4rdshl.Strata
```
## Supported clipboard payloads