launcher: option to close the terminal after a clean exit #1869
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1869
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1869/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@MrBigBritches on GitHub · 2026-10-23 23:07 UTC · original
MrBigBritches:launcher-close-terminal→main· +86 −114 · 4 files · 1 commits · merged 2026-10-24 18:06 UTCAdds a "Close terminal window automatically" checkbox to the General section of the launcher's Global settings. When it's enabled, the terminal window, which is opened when a game is started from the launder, will close automatically iff the emulator exits cleanly (exit code 0). If a clean exit does not occur, the window stays open so the output can still be read.
Behaviour
cmd /Kkeeps the window open, as before/Kcommand ends in&& exit, socmdcloses only after exit code 0; otherwise the prompt stays open with the outputExited with code N.and waits for a keyA normal exit (closing the emulator window) ends with
std::quick_exit(0), so it counts as clean. Fatal errors exit with a non-zero code and keep the window open.Details
close_terminal_on_clean_exit), next to the add-ons folder. It isn't saved per game and isn't part of game-settings import/export.Testing
@coderabbitai[bot] on GitHub · 2026-10-23 23:13 UTC · original · edited 2026-10-24 16:57 UTC
No actionable comments were generated in the recent review.
ℹ️ Recent review info
⚙️ Run configuration
ca0865c2-126c-4503-a476-e5ae694ad763📥 Commits
Reviewing files that changed from the base of the PR and between 38c7204be1baaea91a1f4be2d557ddfddab1efe0 and 3027e1c33e361b1c3d2527fc808d295018f7dcb7.
📒 Files selected for processing: 1
src/launcher/src/configurationEditDialog.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
Walkthrough
The launcher adds a global, default-false setting to close the terminal after a clean game exit. The setting appears in global settings, is saved and loaded with launcher preferences, and is copied into game configurations. Linux scripts and Windows launch commands use the setting to close the terminal after success while keeping it open after failure.
Suggested reviewers:
pipe530Priority:
Low
Change: Feature
Merge Risk:
Minimal · up to
3027eThe new option to close the terminal after a clean exit is off by default, and clearing global settings now restores that default. No remaining merge-blocking risk is evident.
Pre-merge checks:
4 ·
1
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 helpto get the list of available commands.@coderabbitai[bot] on GitHub · 2026-10-23 23:13 UTC · original · reviewed
ℹ️ Review info
⚙️ Run configuration
ae89c719-5c30-4d74-a790-1b05e87db012📥 Commits
Reviewing files that changed from the base of the PR and between
6aaa533296and 38c7204be1baaea91a1f4be2d557ddfddab1efe0.📒 Files selected for processing: 6
src/launcher/include/configuration.hsrc/launcher/include/configurationEditDialog.hsrc/launcher/include/configurationListWidget.hsrc/launcher/src/configurationEditDialog.cppsrc/launcher/src/configurationListWidget.cppsrc/launcher/src/mainDialog.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
@Crispy81 on GitHub · 2026-10-24 02:38 UTC · original
Question: Would it be more efficient to have the terminal window docked to the gui window, like ShadPS4 does it?
@MrBigBritches on GitHub · 2026-10-24 03:23 UTC · original · edited 2026-10-24 04:14 UTC
That is outside the scope of this PR. I implemented this change because the launcher will not allow a game to start while the previous terminal window is open.
This seemed like the easiest, most straightforward option. It’s opt-in, so the existing behaviour is maintained.
@Crispy81 on GitHub · 2026-10-24 05:40 UTC · original
All good, I like this change. Just thought I'd ask about the docked terminal window.