GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — fix(desktop): support Linux distro protocol launchers by limwa · Pull Request #8668 · pingdotgg/t3code Conversation
|
| Runtime | Base | Head |
|---|---|---|
| Both entry writers, override set | AppImage fallback | Configured launcher |
| Generated entry launched by GIO | URI delivered to fallback | URI delivered to launcher |
| Override unset | Existing fallback | Existing fallback |
Before, launched through the fallback:
After, launched through the configured wrapper:
The screenshots show successful app startup; executable selection is established by the recorded entry bytes and wrapper arguments. Desktop-main bundles were built from the exact base/head. Existing production renderer/backend assets from the separate Linux desktop proof for #19909, at d0c7c3a8d5, were reused only to display readable app content; these images do not claim renderer source parity. This exercised shared Electron (isPackaged=false), not a packaged distribution or a real AppImage archive. Early and post-ready writers produced identical bytes. GIO launched the final private entry after startup; the early file was not launched separately during pre-ready startup. Portal chooser/default MIME registration and OAuth callback handling were not tested. No host defaults or live user data were changed.
Implementation/tests: Claude Opus 5.5 and Claude Fable 5.1 through T3 Code. Independent reviews and runtime proof: Claude Opus 5.5 / GPT-6.1 Sol, standard service tiers.
Thanks @limwa for identifying the distribution-wrapper launcher gap and the two Linux entry writers. Replaced by #24591, porting the same opt-in behavior onto current main and preserving the fallback order. The two tests now include paths with spaces; fresh real Electron transcripts and independent proof audit are attached to the replacement.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit efd8981daea3d75e8cf256a417b6a185c8e54173. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a small Linux-only fix that lets distribution packages opt into their launcher while preserving the existing fallback behavior when unset. Both early and normal desktop-entry writers are covered, with no product-default, schema, deployment, or static-analysis changes. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Dismissing prior approval to re-evaluate 0c80f5e
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Reviewed the new/changed Effect service code in apps/desktop/src/app against the service conventions. Imports, the Context.Service + make/layer shape, dependency acquisition (yield* DesktopEnvironment.DesktopEnvironment, ChildProcessSpawner), and the Schema.TaggedErrorClass usage all conform. One issue with message derivation on the new error class.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
17d53cd to
05563cc
Compare
…deps Fixes Linux OAuth callbacks (Google/GitHub SSO) by setting T3CODE_DESKTOP_EXECUTABLE to the stable distro launcher $out/bin/t3code-desktop so the generated t3code-url-handler.desktop Exec is durable instead of a shared electron binary or transient AppImage mount. Prepares for upstream pingdotgg/t3code#8668 which reads T3CODE_DESKTOP_EXECUTABLE and allows unpackaged prod builds to register when the variable is set, and pingdotgg/t3code#8673 which requires update-desktop-database + xdg-mime on PATH. Wrap t3code-desktop (unwrapped) and the final symlinkJoin package with desktop-file-utils (update-desktop-database) and xdg-utils (xdg-mime) for Linux, as suggested in NixOS#555921 (comment).
…deps Fixes Linux OAuth callbacks (Google/GitHub SSO) by setting T3CODE_DESKTOP_EXECUTABLE to the stable distro launcher $out/bin/t3code-desktop so the generated t3code-url-handler.desktop Exec is durable instead of a shared electron binary or transient AppImage mount. Prepares for upstream pingdotgg/t3code#8668 which reads T3CODE_DESKTOP_EXECUTABLE and allows unpackaged prod builds to register when the variable is set, and pingdotgg/t3code#8673 which requires update-desktop-database + xdg-mime on PATH. Wrap t3code-desktop (unwrapped) and the final symlinkJoin package with desktop-file-utils (update-desktop-database) and xdg-utils (xdg-mime) for Linux, as suggested in NixOS#555921 (comment).
Distribution packages run T3 Code on a shared Electron, so the URL handler's Exec pointed at that bare Electron instead of the package's launcher. T3CODE_DESKTOP_LAUNCHER_PATH names the launcher, and both the early portal entry and the handler registration prefer it over APPIMAGE and process.execPath. Assisted-By: Claude Opus 5.5 <[email protected]>
99efd0c to
ed10eac
Compare
Dismissing prior approval to re-evaluate ed10eac
|
Okay, nevermind, it looks like this is a good approach to the problem I was having after all. We're trying to package this in Nixpkgs, but we're having a couple issues with SSO login via Github. This fixes that. Unfortunately, other |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note Written by Hi! We are cleaning up open PRs, and this one appears to have been created with an older model ( |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note Written by Reopening, this was closed by mistake. Sorry for the noise! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…deps Fixes Linux OAuth callbacks (Google/GitHub SSO) by setting T3CODE_DESKTOP_EXECUTABLE to the stable distro launcher $out/bin/t3code-desktop so the generated t3code-url-handler.desktop Exec is durable instead of a shared electron binary or transient AppImage mount. Prepares for upstream pingdotgg/t3code#8668 which reads T3CODE_DESKTOP_EXECUTABLE and allows unpackaged prod builds to register when the variable is set, and pingdotgg/t3code#8673 which requires update-desktop-database + xdg-mime on PATH. Wrap t3code-desktop (unwrapped) and the final symlinkJoin package with desktop-file-utils (update-desktop-database) and xdg-utils (xdg-mime) for Linux, as suggested in NixOS#555921 (comment).
…deps Fixes Linux OAuth callbacks (Google/GitHub SSO) by setting T3CODE_DESKTOP_EXECUTABLE to the stable distro launcher $out/bin/t3code-desktop so the generated t3code-url-handler.desktop Exec is durable instead of a shared electron binary or transient AppImage mount. Prepares for upstream pingdotgg/t3code#8668 which reads T3CODE_DESKTOP_EXECUTABLE and allows unpackaged prod builds to register when the variable is set, and pingdotgg/t3code#8673 which requires update-desktop-database + xdg-mime on PATH. Wrap t3code-desktop (unwrapped) and the final symlinkJoin package with desktop-file-utils (update-desktop-database) and xdg-utils (xdg-mime) for Linux, as suggested in NixOS#555921 (comment).
|
Taking over this one. I’ll reduce the tests to the useful coverage, update the implementation against current main, and verify it before publishing the changes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ce and covers AppImage precedence Co-Authored-By: Claude Fable 5.1 <[email protected]>
Dismissing prior approval to re-evaluate 525a495
Upstream's distro-launcher support (pingdotgg/t3code#8668) reads T3CODE_DESKTOP_LAUNCHER_PATH, not T3CODE_DESKTOP_EXECUTABLE. Set it only in the outer wrapper: the inner unwrapped wrapper runs second and would override it with the unwrapped launcher, which lacks the runtime PATH. Also correct the desktop entry comment: advertising the scheme does not make the entry the default handler; that association belongs in xdg.mimeApps.
renderUrlHandlerDesktopEntry (pingdotgg#16670) now quotes the Exec target only when it contains shell-special characters, so a plain launcher path renders bare. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Dismissing prior approval to re-evaluate fa3d27b
|
Taking over this one |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @limwa — your launcher override and coverage of both Linux desktop-entry writers are retained in #24591. I rebuilt on current main because this fork PR predates desktop startup changes, and compared the full original patch with the replacement: configuration, environment plumbing, both writers, fallback order, and escaping behavior are all present. The replacement rewrites the two regressions with paths containing spaces and adds fresh real Electron evidence and an independent proof audit. No intended behavior was dropped. Closing this original in favor of that focused replacement. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Linux URL handler uses process.execPath when APPIMAGE is unset, so wrapped installs (NixOS) can't receive the T3 Connect sign-in callback
There was an error while loading. Please reload this page.