Skip to content

Commit 34190ba

Browse files
committed
fix: fcitx5 can not start
we must exclude input method related environment variable or it will cause im launch script launch error Log:
1 parent f044d13 commit 34190ba

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

misc/Xsession.d/00deepin-dde-env

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44

55
# export systemd environment to avoid environment be replaced by dde-session
66
# fix https://github.com/linuxdeepin/developer-center/issues/6225
7+
# the following environment variables need to be excluded, otherwise it will affect the startup of some applications
8+
EXCLUDED_ENV="XDG_VTNR\|XDG_SESSION_ID\|XDG_SEAT\|XDG_SESSION_TYPE\|XMODIFIERS\|GTK_IM_MODULE\|QT_IM_MODULE\|CLUTTER_IM_MODULE\|SDL_IM_MODULE"
9+
710
eval "$(
811
busctl --json=short --user get-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager Environment |
912
jq .data\[\] --raw-output |
10-
grep -v "XDG_VTNR\|XDG_SESSION_ID\|XDG_SEAT\|XDG_SESSION_TYPE" | # handle special character in environment
13+
grep -v "$EXCLUDED_ENV" | # handle special character in environment
1114
sed -r 's/\\/\\\\/' |
1215
sed -r 's/'\''/\\'\''/' |
1316
sed -r 's/"/\\"/' |

0 commit comments

Comments
 (0)