dropTrayName releases org.kde.StatusNotifierItem-<pid>-1, which Wails
registered with the watcher by path. A watcher that keys an item by the
name it was registered under (noctalia) dropped magpie's icon when that
name went away. The tray now calls RegisterStatusNotifierItem with the
connection's unique name right after, which is what the reporter's
workaround does by hand.
Run: in the omarchy VM (Quickshell watcher), built with -tags gtk3 on
go1.26.8 and started `magpie tray` under a sandbox HOME on :3591.
RegisteredStatusNotifierItems listed its unique name (:1.236) once, no
org.kde.StatusNotifierItem-* name was left on the bus, introspecting
:1.236 /StatusNotifierItem answered, and the entry went when it exited.
Not tried: noctalia itself; asked the reporter to confirm.
gofmt clean; GOOS=linux go build/vet -tags nogui; darwin and windows vet.
Full suite: not run — one Linux-only file under internal/gui, which CI's
Linux job builds.
A vendor or relay can hand out a ready-made provider as a link. The app
registers the magpie scheme (Info.plist on macOS, HKCU on Windows, a
.desktop handler on Linux), a second launch hands the link to the running
one, and the window shows what the link would add, with the hosts the
prompts and key would go to, before anything is saved. `magpie import`
does the same in a terminal.