修复 Steam 上无法使用本地cursor,降低XDG_DATA_DIRS优先级以修复一些错误

This commit is contained in:
2026-03-29 02:49:33 +08:00
parent 437bc35f21
commit 1414b9d919
5 changed files with 4 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ Source: amber-ce
Version: @VERSION@
Architecture: amd64
Maintainer: shenmo <shenmo@spark-app.store>
Installed-Size: 49000
Installed-Size: 49388
Depends: zenity | garma,bubblewrap, flatpak, policykit-1 | pkexec | polkit-1 | polkit, systemd, procps,coreutils,fuse-overlayfs,xz-utils | xz,libnotify-bin,curl,xdg-user-dirs,bash
Recommends: dpkg, fakeroot, busybox
Section: misc

0
src/etc/apt/sources.list.d/apm.list Normal file → Executable file
View File

0
src/etc/apt/trusted.gpg.d/apm.gpg Normal file → Executable file
View File

View File

View File

@@ -109,8 +109,8 @@ ENV_VARS=(
"PATH /amber-ce-tools/bin-override:\$PATH"
"IS_ACE_ENV 1"
"GTK_USE_PORTAL 1"
"XDG_DATA_DIRS /amber-ce-tools/additional-data-dir-in-container:/host/usr/local/share:/host/usr/share:\$XDG_DATA_DIRS"
"XCURSOR_PATH /host/usr/share/icons:/host/usr/share/cursors:/usr/share/icons:/usr/share/cursors:\$XCURSOR_PATH"
"XDG_DATA_DIRS /amber-ce-tools/additional-data-dir-in-container:\$XDG_DATA_DIRS:/host/usr/local/share:/host/usr/share"
# "XCURSOR_PATH /host/usr/share/icons:/host/usr/share/cursors:/usr/share/icons:/usr/share/cursors:\$XCURSOR_PATH"
)
# 基础绑定目录(始终绑定)
@@ -127,6 +127,7 @@ BASE_BIND_DIRS=(
"--dev-bind-try /run/user/\$uid/pulse /run/user/\$uid/pulse"
"--dev-bind / /host"
"--dev-bind-try /etc/resolv.conf /etc/resolv.conf"
"--dev-bind-try /usr/share/icons /usr/share/icons"
"--dev-bind-try /home /home"
"--dev-bind-try $HOME/.apm/${APM_PKG_NAME}/.deepinwine $HOME/.deepinwine"
)