From e2769c15d2bc9e6f6db9623f6bbcfd73ad096b82 Mon Sep 17 00:00:00 2001 From: shenmo <jifengshenmo@outlook.com> Date: Mon, 13 Nov 2023 10:36:46 +0000 Subject: [PATCH] update src/etc/profile.d/bookworm-compatability-mode.sh. Signed-off-by: shenmo <jifengshenmo@outlook.com> --- src/etc/profile.d/bookworm-compatability-mode.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/etc/profile.d/bookworm-compatability-mode.sh b/src/etc/profile.d/bookworm-compatability-mode.sh index d9e1297..75dfdd9 100755 --- a/src/etc/profile.d/bookworm-compatability-mode.sh +++ b/src/etc/profile.d/bookworm-compatability-mode.sh @@ -11,8 +11,8 @@ fi # 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 # snappy applications' desktop files. -bcm_path="/opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env/usr/share/" -if [ -n "${XDG_DATA_DIRS##*${bcm_path}}" ] && [ -n "${XDG_DATA_DIRS##*${bcm_path}:*}" ]; then - export XDG_DATA_DIRS="${XDG_DATA_DIRS}:${bcm_path}" +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 + export XDG_DATA_DIRS="${ACE_path}:${XDG_DATA_DIRS}" fi