修复无法使用 Steam 的问题

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
2026-03-26 13:06:19 +00:00
committed by Gitee
parent 2ac48801ce
commit bdd5ced484
+6 -7
View File
@@ -61,7 +61,7 @@ fi
######################################################################################### #########################################################################################
##########合成bwrap 1. 基础函数配置段 ##########合成bwrap 1. 基础函数配置段
# 初始化 EXEC_COMMAND 为 bwrap 基础指令 # 初始化 EXEC_COMMAND 为 bwrap 基础指令
EXEC_COMMAND="bwrap --dev-bind / / bwrap" EXEC_COMMAND="bwrap"
# add_command 函数定义 # add_command 函数定义
function add_command() { function add_command() {
@@ -150,12 +150,11 @@ NON_SANDBOX_BIND_DIRS=(
) )
# 根据 APM_USE_BWRAP 决定是否添加 CAP_SYS_ADMIN # 根据 APM_USE_BWRAP 决定是否添加 CAP_SYS_ADMIN
EXTRA_ARGS=()
if [ "${APM_USE_BWRAP:-0}" != "1" ]; then # EXTRA_ARGS=(
EXTRA_ARGS=( # "--unshare-user-try"
"--cap-add CAP_SYS_ADMIN" # )
)
fi
EXTRA_SCRIPTS=( EXTRA_SCRIPTS=(
# cursor_theme_dir_integration # cursor_theme_dir_integration