homebridge-melcloud-control 4.1.2-beta.60 → 4.1.2-beta.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/functions.js +4 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.1.2-beta.
|
|
4
|
+
"version": "4.1.2-beta.61",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
package/src/functions.js
CHANGED
|
@@ -94,10 +94,10 @@ class Functions extends EventEmitter {
|
|
|
94
94
|
|
|
95
95
|
// === Linux x64 ===
|
|
96
96
|
if (osName === 'Linux') {
|
|
97
|
+
let systemChromium = null;
|
|
97
98
|
try {
|
|
98
99
|
const { stdout: checkOut } = await execPromise('which chromium || which chromium-browser || true');
|
|
99
|
-
|
|
100
|
-
if (chromiumPath) return chromiumPath;
|
|
100
|
+
systemChromium = checkOut.trim() || null;
|
|
101
101
|
} catch { }
|
|
102
102
|
|
|
103
103
|
// --- Detect Entware (QNAP) ---
|
|
@@ -125,10 +125,10 @@ class Functions extends EventEmitter {
|
|
|
125
125
|
// Set LD_LIBRARY_PATH so Puppeteer's Chromium can find libs
|
|
126
126
|
process.env.LD_LIBRARY_PATH = '/usr/lib:/usr/lib64:' + (process.env.LD_LIBRARY_PATH || '');
|
|
127
127
|
|
|
128
|
-
|
|
129
|
-
return null;
|
|
128
|
+
return systemChromium;
|
|
130
129
|
}
|
|
131
130
|
|
|
131
|
+
|
|
132
132
|
if (this.logDebug) this.emit('debug', `Unsupported OS: ${osName}.`);
|
|
133
133
|
return null;
|
|
134
134
|
} catch (error) {
|