Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/server/src/process/externalLauncher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ it.effect.skipIf(windowsHost)(
"HOME=/home/user",
"WAYLAND_DISPLAY=wayland-1",
"XAUTHORITY=/home/user/auth files/cookie",
"XDG_SESSION_TYPE=wayland",
],
}),
}),
Expand All @@ -283,6 +284,8 @@ it.effect.skipIf(windowsHost)(
WAYLAND_DISPLAY: "wayland-1",
// Raw, not the $'...' quoting `systemctl show-environment` would print.
XAUTHORITY: "/home/user/auth files/cookie",
// Electron editors pick X11 over Wayland without it, and render at the wrong scale.
XDG_SESSION_TYPE: "wayland",
},
);
assert.deepEqual(yield* launchEnv({ stdout: "invalid JSON" }), { PATH: binDir });
Expand Down
1 change: 1 addition & 0 deletions apps/server/src/process/externalLauncher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ const GRAPHICAL_SESSION_ENV_KEYS: ReadonlySet<string> = new Set([
"DISPLAY",
"WAYLAND_DISPLAY",
"XAUTHORITY",
"XDG_SESSION_TYPE",
]);

// The user manager's environment over D-Bus. `systemctl show-environment` would
Expand Down
Loading