aboutsummaryrefslogtreecommitdiff
path: root/devel/electron12/files/patch-electron_lib_browser_api_power-monitor.ts
blob: fc4b14ab7b32859ad79df4ddfdabbdc7cc2a9976 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- electron/lib/browser/api/power-monitor.ts.orig	2021-04-20 23:32:33 UTC
+++ electron/lib/browser/api/power-monitor.ts
@@ -18,7 +18,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