Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Fader/FaderApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
// AppKit is fully up here — safe for ImageRenderer and icon lookups.
if RenderHarness.isActive { RenderHarness.runAndExit() }
#endif
// As an LSUIElement agent with no open window, RunningBoard rates the
// app's termination resistance at its lowest, so under disk pressure
// the cache-delete daemon evicts it (exit reason 0xBADDD15C) and the
// icon silently vanishes — it won't relaunch until next login. Raising
// resistance tells the system not to reclaim us first; it's a strong
// hint, not a guarantee under severe pressure.
ProcessInfo.processInfo.disableSuddenTermination()
ProcessInfo.processInfo.disableAutomaticTermination("Menu bar agent stays resident")
}

func applicationWillTerminate(_ notification: Notification) {
Expand Down