File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
710eval " $(
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/"/\\"/' |
You can’t perform that action at this time.
0 commit comments