update src/etc/profile.d/bookworm-compatability-mode.sh.

Signed-off-by: RX6900XT <qq482961502@gmail.com>
This commit is contained in:
RX6900XT
2023-11-13 10:57:35 +00:00
committed by Gitee
parent fb8752e0ba
commit c26bf5aa06

View File

@@ -9,8 +9,7 @@ if [ -z "$XDG_DATA_DIRS" ]; then
fi fi
# Desktop files (used by desktop environments within both X11 and Wayland) are # Desktop files (used by desktop environments within both X11 and Wayland) are
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for # looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for ACE
# snappy applications' desktop files.
ACE_path="/opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env/usr/share/" ACE_path="/opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env/usr/share/"
if [ -n "${XDG_DATA_DIRS##*${ACE_path}}" ] && [ -n "${XDG_DATA_DIRS##*${ACE_path}:*}" ]; then if [ -n "${XDG_DATA_DIRS##*${ACE_path}}" ] && [ -n "${XDG_DATA_DIRS##*${ACE_path}:*}" ]; then
export XDG_DATA_DIRS="${ACE_path}:${XDG_DATA_DIRS}" export XDG_DATA_DIRS="${ACE_path}:${XDG_DATA_DIRS}"