mirror of
https://gitee.com/amber-ce/amber-pm
synced 2026-06-10 06:52:31 +08:00
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user