feat(cli): add Linux desktop app launcher#21456
Draft
efrazer-oai wants to merge 1 commit intomainfrom
Draft
Conversation
d0d5991 to
f10c815
Compare
f10c815 to
5e38343
Compare
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
Codex Desktop already has macOS and Windows launch paths in the CLI, but Linux builds do not expose
codex appat all. This change adds the Linux CLI surface so a Linux user can launch an installed Codex Desktop app from the same command shape used on the other desktop platforms.The Linux path searches standard XDG application directories for a desktop entry named
Codex, opens the requested workspace throughgio launch, and supports--download-urlas an explicit installer handoff when the app is not installed yet. When no installed app or installer URL is available, it returns a direct error instead of silently doing nothing.Why
The Electron desktop app already has Linux build support, but the CLI still treated Linux as if no desktop app existed. Exposing the launcher is the first step toward making Linux a normal desktop target rather than a build-only target.
Testing
Tests: targeted Rust unit tests for Linux desktop-file detection and a focused
codex-clitest run.