Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): surface Tailscale Serve setup failures with admin link #4552

ClosedGenKerensky(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/4552/headopened View on GitHub

Showing 9 changed files with 109 additions and 2 deletions (loading 6).

x
0 of 9 viewed, 9 left
64 additions and 0 deletionsapps/desktop/src/app/DesktopLifecycle.relaunch.test.tsAdded
View file
@@ -0,0 +1,64 @@
+import { assert, describe, it } from "@effect/vitest";
+import * as Effect from "effect/Effect";
+​
+import { resolveDesktopRelaunchOptions } from "./resolveDesktopRelaunchOptions.ts";
+​
+describe("resolveDesktopRelaunchOptions", () => {
+ it.effect("relaunches the outer AppImage path instead of the temporary mount binary", () =>
+ Effect.sync(() => {
+ const options = resolveDesktopRelaunchOptions({
+ appImagePath: "/home/user/T3-Code-0.0.28-x86_64.AppImage",
+ execPath: "/tmp/.mount_t3_codXXXX/t3-code",
+ argv: ["/tmp/.mount_t3_codXXXX/t3-code", "--some-internal-flag"],
+ });
+​
+ assert.deepEqual(options, {
+ execPath: "/home/user/T3-Code-0.0.28-x86_64.AppImage",
+ args: [],
+ });
+ }),
+ );
+​
+ it.effect("trims APPIMAGE and ignores empty values", () =>
+ Effect.sync(() => {
+ assert.deepEqual(
+ resolveDesktopRelaunchOptions({
+ appImagePath: " /opt/T3-Code.AppImage ",
+ execPath: "/tmp/.mount/app",
+ argv: ["/tmp/.mount/app"],
+ }),
+ {