Skip to content

fix(fileexplorer): fall back when desktop entry has no command - #6392

Merged
leaanthony merged 1 commit into
masterfrom
codex/v3-20261028-port-002
Oct 28, 2026
Merged

leaanthony merged 1 commit into
masterfrom
codex/v3-20261028-port-002

Conversation

@taliesin-ai

Copy link
Copy Markdown
Collaborator

An empty Linux desktop Exec caused Wails to return the selected path as the executable. Selected because opening a file manager could instead try to execute a file or directory.

Reuse the existing xdg-open fallback when expanded arguments are empty. Hermetic fixtures cover missing, empty, whitespace-only, and removed-field-code commands for files/directories, plus valid commands.

Ported onto current public master with feature changes excluded.

Validation on this port, from v3:

  • CI=1 go test -race -tags bench ./internal/fileexplorer -count=1 — passed.
  • go vet -tags bench ./internal/fileexplorer — passed.
  • git diff --check — passed.

Historical performance measurements, where present in the original implementation, were not rerun here. Native platform validation is limited to the local Linux environment.

The maintainer requested immediate admin merges for this dependency-ordered bug/performance series, with the final PR left open for CI review. No release, milestone or repository-protection changes are included.

@leaanthony
leaanthony merged commit 756a696 into master Oct 28, 2026
5 of 6 checks passed
@leaanthony
leaanthony deleted the codex/v3-20261028-port-002 branch October 28, 2026 10:50
@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants