Skip to content

deal with large outputs from xdg-open/rundll32/open - #12797

Merged
mitchellh merged 1 commit into
ghostty-org:mainfrom
jcollie:gtk-xdg-open
May 25, 2026
Merged

mitchellh merged 1 commit into
ghostty-org:mainfrom
jcollie:gtk-xdg-open

Conversation

@jcollie

@jcollie jcollie commented May 25, 2026

Copy link
Copy Markdown
Member

Depending on your system config, xdg-open may stay open for extended periods, and potentially log more than the 50kb of output that we were previously able to deal with. This changes open() so that output on stdout is just directly ignored. Any output from stderr is immedialy logged rather than collected for later logging.

Note that this will generally occur if your system is not configured with the DBus portals that xdg-open uses to open URLs rather than launching programs like your web browser directly. This could be seen as user misconfiguration but we should deal with it robustly anyway.

Depending on your system config, `xdg-open` may stay open for extended
periods, and potentially log more than the 50kb of output that we were
previously able to deal with. This changes `open()` so that output on
`stdout` is just directly ignored. Any output from `stderr` is immedialy
logged rather than collected for later logging.

Note that this will generally occur if your system is not configured
with the DBus portals that `xdg-open` uses to open URLs rather than
launching programs like your web browser directly. This could be seen as
user misconfiguration but we should deal with it robustly anyway.
@mitchellh mitchellh added this to the 1.3.2 milestone May 25, 2026
@mitchellh
mitchellh merged commit cf9e85e into ghostty-org:main May 25, 2026
93 checks passed
@jcollie
jcollie deleted the gtk-xdg-open branch May 25, 2026 03:12
@mitchellh mitchellh modified the milestones: 1.3.2, 1.4.0 Oct 13, 2026
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