Repository navigation
fix(gpui): allow tray stop fallback when global shortcuts session fails - #2511
Merged
richiemcilroy merged 2 commits intoOct 18, 2026
Merged
Conversation
Contributor
|
@melcheikh is attempting to deploy a commit to the Cap Software Inc Team on Vercel. A member of the Team first needs to authorize it. |
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #2500
When running on Wayland environments where global shortcut portal session creation fails (such as GNOME 50 / Fedora 44 requiring an App ID),
run_portal_stoppreviously set*fallback_safe = false;before attempting to create the session withportal.create_session().Because the session failed to create,
run_wayland_stopcheckedif !fallback_safeand aborted recording with:instead of proceeding to
run_tray_stopas intended.Solution
*fallback_safe = false;until immediately afterportal.create_session()succeeds.create_session()fails,fallback_saferemainstruebecause no session was ever registered with the portal, allowing clean fallback to the system tray stop control.Note
This is my first contribution to Cap! I hope this fix is welcome and helps Linux users on newer Wayland environments, and I would greatly appreciate consideration for any bounty or tip attached to this issue.

Confidence Score: 5/5
The PR appears safe to merge; it enables tray fallback on session creation errors without weakening shortcut cleanup checks.Summary
Moves
fallback_safe = falseuntil afterportal.create_session()succeeds.Reviews (1) · Last reviewed commit: "fix(gpui): allow tray stop fallback when..." · Reviewed by Greptile