Skip to content

Surface xdg-open errors from open helper#6057

Open
shbernal wants to merge 1 commit into
basecamp:devfrom
shbernal:expose-open-stderr
Open

Surface xdg-open errors from open helper#6057
shbernal wants to merge 1 commit into
basecamp:devfrom
shbernal:expose-open-stderr

Conversation

@shbernal

@shbernal shbernal commented Jun 6, 2026

Copy link
Copy Markdown

Summary

  • let the open shell helper surface xdg-open stderr in the terminal
  • keep stdout redirected to /dev/null so command output stays quiet
  • keep xdg-open backgrounded in the subshell to preserve the non-blocking behavior and avoid job-control noise

Closes #6056

Testing

  • bash -n default/bash/aliases
  • git diff --check
  • focused shell test with a stubbed xdg-open confirmed stderr is visible while stdout stays out of pipelines

Copilot AI review requested due to automatic review settings June 6, 2026 22:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the open() shell helper to change how xdg-open output and process behavior are handled.

Changes:

  • Adjusts xdg-open redirection in open() to only drop stdout.
  • Removes background execution of xdg-open.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread default/bash/aliases

open() (
xdg-open "$@" >/dev/null 2>&1 &
xdg-open "$@" >/dev/null &
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.

Surface xdg-open errors from the open shell helper

2 participants