aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-client/src/preload.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-client/src/preload.js')
-rw-r--r--packages/meshbay-client/src/preload.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/meshbay-client/src/preload.js b/packages/meshbay-client/src/preload.js
index 96d6790..38c1a57 100644
--- a/packages/meshbay-client/src/preload.js
+++ b/packages/meshbay-client/src/preload.js
@@ -97,13 +97,19 @@ contextBridge.exposeInMainWorld('meshbay', {
call: (method, path, body) => ipcRenderer.invoke('node:call', method, path, body),
pairingCode: () => ipcRenderer.invoke('node:pairing-code'),
setPairingCode: (code) => ipcRenderer.invoke('node:set-pairing-code', code),
- // The systemd unit's own state — reachable even while the daemon itself
- // is stopped or crash-looping, which `call()` above is not.
+ // The daemon's lifecycle as seen from outside it: the systemd unit (Linux)
+ // or, on Windows, a probe of the daemon plus whether the Startup launcher
+ // is in place — reachable even while the daemon itself is stopped or
+ // crash-looping, which `call()` above is not.
service: {
status: () => ipcRenderer.invoke('node:service-status'),
stop: () => ipcRenderer.invoke('node:service-stop'),
restart: () => ipcRenderer.invoke('node:service-restart'),
},
+ // Windows only: the "run at every sign-in" Startup-folder launcher.
+ // action: 'install' | 'remove' | 'status' (default). Elsewhere returns
+ // { supported: false }.
+ autostart: (action) => ipcRenderer.invoke('node:autostart', action),
},
// LAN cast relay. The main process runs a local HTTP server and the