diff options
Diffstat (limited to 'devel/electron33/files/patch-electron_lib_browser_api_power-monitor.ts')
-rw-r--r-- | devel/electron33/files/patch-electron_lib_browser_api_power-monitor.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/electron33/files/patch-electron_lib_browser_api_power-monitor.ts b/devel/electron33/files/patch-electron_lib_browser_api_power-monitor.ts new file mode 100644 index 000000000000..24713c283fe7 --- /dev/null +++ b/devel/electron33/files/patch-electron_lib_browser_api_power-monitor.ts @@ -0,0 +1,11 @@ +--- electron/lib/browser/api/power-monitor.ts.orig 2023-08-14 18:19:06 UTC ++++ electron/lib/browser/api/power-monitor.ts +@@ -17,7 +17,7 @@ class PowerMonitor extends EventEmitter { + const pm = createPowerMonitor(); + pm.emit = this.emit.bind(this); + +- if (process.platform === 'linux') { ++ if (process.platform === 'linux' || process.platform === 'freebsd') { + // On Linux, we inhibit shutdown in order to give the app a chance to + // decide whether or not it wants to prevent the shutdown. We don't + // inhibit the shutdown event unless there's a listener for it. This |