From acfb32d51f5d56eea9f7c3bc96f553accfd15a15 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Thu, 6 Feb 2025 17:53:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Drun-system-bwrap=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- off-line-shell/run-system-bwrap.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/off-line-shell/run-system-bwrap.sh b/off-line-shell/run-system-bwrap.sh index aee77bb..a62bb14 100755 --- a/off-line-shell/run-system-bwrap.sh +++ b/off-line-shell/run-system-bwrap.sh @@ -11,9 +11,22 @@ if [[ -d /usr/lib64 ]] && [[ -d $SHELL_FOLDER/lib64 ]]; then option="$option --dev-bind $SHELL_FOLDER/lib64 /usr/lib64 " fi +if [[ -d /usr/share/fonts ]]; then + option="$option --dev-bind /usr/share/fonts /usr/share/fonts " +fi + +if [[ -d $SHELL_FOLDER/gnemul ]]; then + if [[ ! -d /usr/gnemul ]]; then + pkexec mkdir -p /usr/gnemul + fi + option="$option --dev-bind $SHELL_FOLDER/gnemul /usr/gnemul " +fi + bwrap --dev-bind / / \ --dev-bind "$SHELL_FOLDER/bin" /usr/bin \ + --dev-bind "$SHELL_FOLDER/bin" /bin \ --dev-bind "$SHELL_FOLDER/lib" /usr/lib \ + --dev-bind "$SHELL_FOLDER/lib" /lib \ --dev-bind /usr/lib/locale /usr/lib/locale \ --dev-bind "$SHELL_FOLDER/share" /usr/share \ $option \