ework-web 0.4.1 → 0.4.2
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/index.ts +10 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -240,8 +240,16 @@ function daemonEnvPath(): string | null {
|
|
|
240
240
|
const p = join(dataDir, ".env");
|
|
241
241
|
return existsSync(p) ? p : null;
|
|
242
242
|
}
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
// Conventional paths: standalone install, then ework-aio managed layout
|
|
244
|
+
// (~/.local/share/ework-aio/ework-daemon/.env).
|
|
245
|
+
const candidates = [
|
|
246
|
+
join(homedir(), ".local", "share", "ework-daemon", ".env"),
|
|
247
|
+
join(homedir(), ".local", "share", "ework-aio", "ework-daemon", ".env"),
|
|
248
|
+
];
|
|
249
|
+
for (const c of candidates) {
|
|
250
|
+
if (existsSync(c)) return c;
|
|
251
|
+
}
|
|
252
|
+
return null;
|
|
245
253
|
}
|
|
246
254
|
|
|
247
255
|
function spawnDaemonRestart(): void {
|