Add terminate on pause option for apps (resolves #801)

This commit is contained in:
Yukino Song
2025-06-04 19:02:10 +08:00
parent e52176707f
commit d316b272da
6 changed files with 31 additions and 3 deletions

View File

@@ -2070,9 +2070,7 @@ namespace stream {
if (--running_sessions == 0) {
bool revert_display_config {config::video.dd.config_revert_on_disconnect};
if (proc::proc.running()) {
#if defined SUNSHINE_TRAY && SUNSHINE_TRAY >= 1
system_tray::update_tray_pausing(proc::proc.get_last_run_app_name());
#endif
proc::proc.pause();
} else {
// We have no app running and also no clients anymore.
revert_display_config = true;