blob: 24713c283fe72a3260216259f018636a230919f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
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
|