Implement per-client app identity

This commit is contained in:
Yukino Song
2025-01-23 18:09:43 +08:00
parent 8433eaa8b3
commit 8a20264c19
5 changed files with 50 additions and 9 deletions

View File

@@ -290,12 +290,24 @@
default="false"
></Checkbox>
<!-- use app identity -->
<div class="mb-3 form-check">
<label for="useAppIdentity" class="form-check-label">{{ $t('apps.use_app_identity') }}</label>
<input type="checkbox" class="form-check-input" id="useAppIdentity" v-model="editForm['use-app-identity']"
true-value="true" false-value="false" />
<div class="form-text">{{ $t('apps.use_app_identity_desc') }}</div>
</div>
<Checkbox class="mb-3"
id="useAppIdentity"
label="apps.use_app_identity"
desc="apps.use_app_identity_desc"
v-model="editForm['use-app-identity']"
true-value="true"
false-value="false"
></Checkbox>
<!-- use app identity -->
<Checkbox class="mb-3"
v-if="editForm['use-app-identity'] === 'true'"
id="perClientAppIdentity"
label="apps.per_client_app_identity"
desc="apps.per_client_app_identity_desc"
v-model="editForm['per-client-app-identity']"
true-value="true"
false-value="false"
></Checkbox>
<!-- resolution scale factor -->
<div class="mb-3" v-if="platform === 'windows'">
<label for="resolutionScaleFactor" class="form-label">{{ $t('apps.resolution_scale_factor') }}: {{editForm['scale-factor']}}%</label>
@@ -418,6 +430,7 @@
"image-path": "",
"scale-factor": "100",
"use-app-identity": false,
"per-client-app-identity": false,
"allow-client-commands": true,
}

View File

@@ -86,6 +86,8 @@
"name": "Name",
"output_desc": "The file where the output of the command is stored, if it is not specified, the output is ignored",
"output_name": "Output",
"per-client-app-identrty": "Per Client App Identity",
"per-client-app-identity-desc": "Separate the app's identity per-client. Useful when you want different virtual display configurations on this specific app for different clients",
"run_as_desc": "This can be necessary for some applications that require administrator permissions to run properly. Might cause URL schemes to fail.",
"wait_all": "Continue streaming until all app processes exit",
"wait_all_desc": "This will continue streaming until all processes started by the app have terminated. When unchecked, streaming will stop when the initial app process exits, even if other app processes are still running.",

View File

@@ -84,6 +84,8 @@
"name": "名称",
"output_desc": "存储命令输出的文件,如果未指定,输出将被忽略",
"output_name": "输出",
"per-client-app-identrty": "按客户端区分 App 身份",
"per-client-app-identity-desc": "当你希望在使用此 App 时每个客户端都有不同的虚拟显示器组合配置时有用。",
"run_as_desc": "这可能是某些需要管理员权限才能正常运行的应用程序所必需的。可能会导致 URL schemes 无法正常启动。",
"wait_all": "继续串流直到所有应用进程退出",
"wait_all_desc": "这将继续串流直到应用程序启动的所有进程终止。 当未选中时,串流将在初始应用进程终止时停止,即使其他应用进程仍在运行。",