You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Desktop Linux: 'Open with app' fails for Sublime Text and Zed with os error 2 #20195
On CachyOS (Arch-based Linux), OpenCode desktop fails to open the current workspace directory in both Sublime Text and Zed from the session header's "Open with ..." menu. The app shows Request failed and the backend error is Failed to open path: No such file or directory (os error 2).
This does not look like a missing project directory. It looks like editor resolution on Linux:
command -v zed -> ~/.local/bin/zed
command -v subl -> /usr/bin/subl
command -v sublime_text -> not found
Relevant implementation details I traced while debugging:
Linux app map uses openWith: "Sublime Text" for Sublime Text
packages/desktop/src-tauri/src/lib.rs
check_linux_app currently returns true unconditionally, so unavailable or misresolved apps are still shown
open_path forwards the app name directly to tauri_plugin_opener::open_path
In tauri-plugin-opener, when an app is provided it ultimately calls open::with_detached(path, program); it doesn't prevalidate the path first, so os error 2 appears to be the program lookup failing rather than the workspace path missing
Possibly there are two issues here:
Sublime Text is using a display name instead of the Linux executable (subl)
Zed may fail when OpenCode desktop does not inherit a PATH containing ~/.local/bin
Steps to reproduce
On CachyOS/Arch Linux, install Zed and Sublime Text
Open OpenCode desktop
Open any session/workspace
Use the session header and choose "Open with Zed" or "Open with Sublime Text"
Expected behavior
The workspace directory opens in the selected editor.
Actual behavior
OpenCode shows Request failed and Failed to open path: No such file or directory (os error 2).
Activity
gaxeliy commentedon May 27, 2026
Same problem!
OpenCode version 1.15.10
github-actions commentedon Jul 27, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.