mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-25 02:32:47 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user