Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): backfill SSH_AUTH_SOCK from login shell on macOS #972

Mergedstickerdaniel(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/972/headmerged by juliusmarminge View on GitHub

Showing 6 changed files with 87 additions and 17 deletions (loading 3).

x
0 of 6 viewed, 6 left
0 additions and 15 deletionsapps/desktop/src/fixPath.tsDeleted
@@ -1,15 +0,0 @@
-import { readPathFromLoginShell } from "@t3tools/shared/shell";
-​
-export function fixPath(): void {
- if (process.platform !== "darwin") return;
-​
- try {
- const shell = process.env.SHELL ?? "/bin/zsh";
- const result = readPathFromLoginShell(shell);
- if (result) {
- process.env.PATH = result;
- }
- } catch {
- // Keep inherited PATH if shell lookup fails.
- }
-}
2 additions and 2 deletionsapps/desktop/src/main.tsModified
View file
@@ -28,7 +28,7 @@
import { NetService } from "@t3tools/shared/Net";
import { RotatingFileSink } from "@t3tools/shared/logging";
import { showDesktopConfirmDialog } from "./confirmDialog";
-import { fixPath } from "./fixPath";
+import { syncShellEnvironment } from "./syncShellEnvironment";
import { getAutoUpdateDisabledReason, shouldBroadcastDownloadProgress } from "./updateState";
import {
createInitialDesktopUpdateState,
@@ -44,7 +44,7 @@
} from "./updateMachine";