mirror of
https://gitee.com/amber-ce/amber-ce-bookworm.git
synced 2025-07-15 01:52:24 +08:00
update src/etc/profile.d/bookworm-compatability-mode.sh.
针对ubuntu发行版本做出修正,在deepin下也能正常工作 Signed-off-by: RX6900XT <qq482961502@gmail.com>
This commit is contained in:
parent
6322718144
commit
1e88351964
@ -1,4 +1,18 @@
|
|||||||
export XDG_DATA_DIRS
|
# shellcheck shell=sh
|
||||||
APP_ROOT="/opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env/usr/share"
|
|
||||||
XDG_DATA_DIRS="${APP_ROOT}:/usr/local/share:/usr/share"
|
|
||||||
export APP_ROOT
|
|
||||||
|
# Ensure base distro defaults xdg path are set if nothing filed up some
|
||||||
|
# defaults yet.
|
||||||
|
if [ -z "$XDG_DATA_DIRS" ]; then
|
||||||
|
export XDG_DATA_DIRS="/usr/local/share:/usr/share"
|
||||||
|
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}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user