Skip to content
Source
Sign inSign up
pingdotgg/t3code

refactor: home directory comes from a HostProcessHomeDirectory reference #17628

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/17628/headmerged by juliusmarminge View on GitHub

Showing 74 changed files with 20 additions and 15 deletions (loading 71).

x
0 of 74 viewed, 74 left
4 additions and 1 deletionapps/desktop/src/app/DesktopApp.tsModified
View file
@@ -35,6 +35,7 @@
import * as DesktopSnapShot from "../snapShot/DesktopSnapShot.ts";
import * as DesktopWslBackend from "../wsl/DesktopWslBackend.ts";
import * as DesktopRendererHistory from "../telemetry/DesktopRendererHistory.ts";
+import { HostProcessHomeDirectory } from "@t3tools/shared/hostProcess";
​
const DEFAULT_DESKTOP_BACKEND_PORT = 3773;
const MAX_TCP_PORT = 65_535;
@@ -284,7 +285,9 @@
preReadyElectronOptions.linuxPasswordStoreCommandLine !== null;
const linuxElectronOptions =
environment.platform === "linux" && !hasCommandLinePasswordStore
- ? DesktopPreReadyPlatform.resolveEarlyLinuxElectronOptionsFromProcess()
+ ? DesktopPreReadyPlatform.resolveEarlyLinuxElectronOptionsFromProcess(
+ yield* HostProcessHomeDirectory,
+ )
: preReadyElectronOptions.linux;
if (linuxElectronOptions !== null && !hasCommandLinePasswordStore) {
if (
14 additions and 12 deletionsapps/desktop/src/app/DesktopPreReadyPlatform.tsModified
View file
@@ -1,13 +1,12 @@
// @effect-diagnostics nodeBuiltinImport:off - pre-ready Electron setup reads settings and prepares the Linux desktop entry synchronously before app services are available.
import * as NodeFS from "node:fs";
-import * as NodeOS from "node:os";
import * as NodePath from "node:path";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";