Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mort96
54 days ago
|
parent
|
context
|
favorite
| on:
Show HN: I rewrote my Mac Electron app in Rust
Electron doesn't automatically exit when the last window is closed, and the Electron getting started guide (
https://www.electronjs.org/docs/latest/tutorial/tutorial-fir...
) recommends this code:
app.on('window-all-closed', () => { if (process.platform !== 'darwin') app.quit() })
Most Electron apps probably do exactly that. It would feel
extremely
out of place for a macOS app to quit just because you closed a window.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: