fix: point the T3 Code URL handler at the wrapper #5
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/t3code-url-handler"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
T3 Code installed through this flake cannot sign in to T3 Connect on Linux.
Sign-in runs Clerk OAuth in the system browser, which hands control back through a
t3code://callback. At startup the app registers itself as that handler by writing~/.local/share/applications/com.t3tools.T3Code.desktopwithExec=$APPIMAGEorprocess.execPath. Outside an AppImage,process.execPathis the bareelectron-unwrappedbinary without the app directory (thet3code-desktopwrapper adds that), so the callback starts an empty electron and the pending sign-in never completes.Fix
Override
t3code-unwrappedwith an extrapostPatchthat makes both writers (DesktopPreReadyPlatform.ts,DesktopLinuxUrlHandler.ts) use"t3code-desktop", resolved from PATH like upstream's own desktop file. That picks up the Home Manager wrapper with the provider PATH.--replace-failbreaks the build if upstream moves the lines.Setting
APPIMAGEin the wrapper was ruled out: electron-updater would then treat the store path as an AppImage to replace.Notes
isPackagedissue (#9182).Testing
nix flake checkpasses.main.cjshasexecTarget: "t3code-desktop"at both writers.🤖 Generated with Claude Code