Skip to content

feat(api-server): window/show and quit, and drop the tray for the GNOME mini player - #31

Merged
bercedev merged 1 commit into
masterfrom
feat/api-window-quit-tray
Nov 4, 2026
Merged

bercedev merged 1 commit into
masterfrom
feat/api-window-quit-tray

Conversation

@bercedev

@bercedev bercedev commented Nov 4, 2026

Copy link
Copy Markdown
Member

the app side of #30 (part 2)

  • POST /api/v1/window/show (show + focus) and POST /api/v1/quit, both 204, behind the same auth as the other control routes
  • when yourtune-gnome-miniplayer opens the websocket, the tray icon is destroyed. the client id is read from the token even with auth set to NONE
  • the tray setting itself doesn't change, so closing the window still hides it

one change from what i wrote in the issue: the tray doesn't come back on disconnect. electron on linux can't create a tray icon twice in one process, the second new Tray logs org.kde.StatusNotifierItem.Activate is already exported and nothing shows up. so it stays gone until yourtune restarts

tested in the real app (xvfb + a private dbus session with a small StatusNotifierWatcher):

  • before connect: item Status = Active
  • mini player connected: item gone
  • after disconnect: still gone, no dbus errors
  • window/show 204, quit 204 and the app exits

tsc, oxlint, playwright 86/86

…ME mini player

The GNOME mini player is a panel icon of its own, so with the tray on the
panel showed two identical icons. The tray icon now goes away once the mini
player connects over the websocket. Electron on Linux can't make a tray icon
again in the same process (its dbus objects stay exported), so it comes back
after a restart rather than on disconnect.

POST /window/show and POST /quit let the mini player offer the tray menu's
Show and Quit.

Refs #30
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

🚀 Build Artifacts Ready!

The builds have completed successfully. You can download the artifacts from the workflow run:

📦 Download Artifacts

Available builds:

  • Windows: build-artifacts-windows-latest
  • macOS: build-artifacts-macos-latest
  • Linux: build-artifacts-ubuntu-latest

Note: Artifacts are available for 7 days.

@bercedev
bercedev merged commit 34ff9b3 into master Nov 4, 2026
8 checks passed
@bercedev
bercedev deleted the feat/api-window-quit-tray branch November 4, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant