Skip to content

Remove macOS Electron system tray in favor of remoteit-tray#1128

Draft
JamieRuderman wants to merge 1 commit into
mainfrom
feature/standalone-tray-integration
Draft

Remove macOS Electron system tray in favor of remoteit-tray#1128
JamieRuderman wants to merge 1 commit into
mainfrom
feature/standalone-tray-integration

Conversation

@JamieRuderman

Copy link
Copy Markdown
Member

Draft — depends on remoteit-tray shipping. See ⚠️ below before merging.

What

On macOS, stop creating the Electron Tray + TrayMenu. The menu-bar tray is now provided by the standalone remoteit-tray app (in cli-source), so it lives with the agent and survives this app being quit — the original motivation.

  • createSystemTray() skips the tray on macOS (environment.isMac); the application menu setup is unchanged. Windows/Linux keep the Electron tray until remoteit-tray supports them (Phase 3).
  • openWindow() no longer gates on this.tray (it was only a guard, not a positioning anchor). The window is driven by the existing activate / open-url handlers, so the standalone tray's "Open remote.it Desktop" item works.
  • TrayMenu.ts is retained (still used on Windows/Linux).

Companion CLI PR: remoteit/cli-source#426

⚠️ Merge ordering — do not ship before remoteit-tray is bundled

remoteit-tray is not yet bundled or auto-installed by this app. If this merges/ships as-is, macOS users would lose their tray entirely until they manually install remoteit-tray. This PR should land only alongside (or after) the follow-up that:

  1. bundles remoteit-tray.app in the desktop app's resources, and
  2. installs/launches it on first run (remoteit-tray install),

plus codesigning/notarization of the bundled binary. Kept as a draft until then.

Typecheck

tsc -p electron/tsconfig.json --noEmit clean.

@aws-amplify-us-west-1

Copy link
Copy Markdown

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-1128.d20k671nqqv4kl.amplifyapp.com

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