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

@@ -324,6 +324,14 @@
v-model="editForm['wait-all']"
default="true"
></Checkbox>
<!-- terminate on pause -->
<Checkbox class="mb-3"
id="terminateOnPause"
label="apps.terminate_on_pause"
desc="apps.terminate_on_pause_desc"
v-model="editForm['terminate-on-pause']"
default="false"
></Checkbox>
<!-- exit timeout -->
<div class="mb-3">
<label for="exitTimeout" class="form-label">{{ $t('apps.exit_timeout') }}</label>
@@ -503,6 +511,7 @@
"per-client-app-identity": false,
"allow-client-commands": true,
"virtual-display": false,
"terminate-on-pause": false,
"gamepad": ""
}

View File

@@ -105,6 +105,8 @@
"run_as_desc": "This can be necessary for some applications that require administrator permissions to run properly. Might cause URL schemes to fail.",
"save_failed": "Failed to save app: ",
"save_order": "Save Order",
"terminate_on_pause": "Terminate on Pause",
"terminate_on_pause_desc": "Terminate the app when all clients are disconnected.",
"use_app_identity": "Use App Identity",
"use_app_identity_desc": "Use the app's own identity while creating virtual displays instead of client's. This is useful when you want display configuration for each APP separately.",
"virtual_display": "Always use Virtual Display",

View File

@@ -106,6 +106,8 @@
"run_as_desc": "这可能是某些需要管理员权限才能正常运行的应用程序所必需的。可能会导致 URL schemes 无法正常启动。",
"save_failed": "保存APP失败",
"save_order": "保存排序",
"terminate_on_pause": "暂停时终止",
"terminate_on_pause_desc": "当所有客户端断开连接时终止此 APP。",
"use_app_identity": "使用 App 身份",
"use_app_identity_desc": "在创建虚拟显示器时使用 App 自身的身份,而非客户端的。这样可以针对 APP 进行单独的显示器组合配置。",
"virtual_display": "总是使用虚拟显示器",