fix(desktop): use CLI shim for packaged Linux installs (#4207)

Non-AppImage packages install the Electron executable at a stable path, but invoking it through the CLI symlink cannot restart the daemon. Link the bundled CLI shim for those targets while preserving AppImage links.\n\nFixes #4184
This commit is contained in:
Mohamed Boudra
2026-09-02 12:30:28 +02:00
committed by GitHub
parent de8535c38b
commit 4aab00f267
2 changed files with 12 additions and 0 deletions
@@ -25,6 +25,17 @@ describe("cli-install-path", () => {
).toBe("/home/user/Applications/Paseo.AppImage");
});
it("uses the bundled shim for packaged linux installs outside an AppImage", () => {
expect(
resolveCliInstallSourcePath({
platform: "linux",
isPackaged: true,
executablePath: "/opt/Paseo/Paseo",
shimPath: "/opt/Paseo/resources/bin/paseo",
}),
).toBe("/opt/Paseo/resources/bin/paseo");
});
it("falls back to the shim on windows and in development", () => {
expect(
resolveCliInstallSourcePath({
@@ -22,6 +22,7 @@ export function resolveCliInstallSourcePath(input: {
if (appImagePath) {
return appImagePath;
}
return input.shimPath;
}
return input.executablePath;