Commit 7b5421c
authored
🤖 fix: skip splash screen on macOS dock reactivation (#854)
## Problem
`ERR_FAILED (-2)` loading `splash.html` from ASAR intermittently on
macOS dock reactivation because:
- macOS App Nap throttles idle apps
- File descriptors to ASAR archive may be reclaimed after inactivity
- The `activate` event fires before I/O is fully responsive
## Solution
Skip the splash screen on reactivation. Services are already loaded from
initial launch, so window creation is fast (~100ms). The splash exists
to cover heavy initialization—unnecessary on reactivation.
**-20 LoC, +2 LoC** (net: -18)
## Alternatives Considered
| Option | Tradeoff |
|--------|----------|
| Retry with backoff | Adds complexity, user still sees delay on failure
|
| Disable App Nap | System-wide side effects, not recommended |
| Inline splash HTML as data URL | Avoids file I/O but complicates build
|
_Generated with `mux`_1 parent 543850b commit 7b5421c
1 file changed
+2
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
561 | | - | |
| 560 | + | |
562 | 561 | | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
| 562 | + | |
581 | 563 | | |
582 | 564 | | |
583 | 565 | | |
0 commit comments