Skip to content

Filter Linux workspace open targets by XDG category - #2494

Open
wy3z wants to merge 1 commit into
get-bb:mainfrom
wy3z:fix/linux-open-target-discovery
Open

Filter Linux workspace open targets by XDG category#2494
wy3z wants to merge 1 commit into
get-bb:mainfrom
wy3z:fix/linux-open-target-discovery

Conversation

@wy3z

@wy3z wy3z commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • restrict generic Linux desktop-entry discovery to file managers, text editors, and terminal emulators
  • use the standard XDG Categories values FileManager, TextEditor, and TerminalEmulator
  • keep unrelated desktop applications out of BB's Open in/Open with menus

Root cause

PR #403 added generic Linux desktop-application discovery for workspace open
targets. It currently includes every visible .desktop entry with
Type=Application, an Exec command, and neither Hidden=true nor
NoDisplay=true.

As a result, BB's Open in/Open with menus can contain nearly every installed
desktop application on Linux, including media players, settings utilities,
messaging clients, and other software that is not a useful workspace target.

This change additionally requires a relevant standard XDG category:
FileManager, TextEditor, or TerminalEmulator. Existing explicit BB launch
adapters remain unaffected.

Validation

  • pnpm exec turbo run typecheck test --filter=@bb/local-open-targets --force
  • git diff --check

AGENT GENERATED

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.

1 participant