Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion misc/Xsession.d/00deepin-dde-env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# export systemd environment to avoid environment be replaced by dde-session
# fix https://github.com/linuxdeepin/developer-center/issues/6225
# the following environment variables need to be excluded, otherwise it will affect the startup of some applications
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"
EXCLUDED_ENV="XDG_VTNR\|XDG_SESSION_ID\|XDG_SEAT\|XDG_SESSION_TYPE\|XDG_CURRENT_DESKTOP\|XMODIFIERS\|GTK_IM_MODULE\|QT_IM_MODULE\|CLUTTER_IM_MODULE\|SDL_IM_MODULE"

eval "$(
busctl --json=short --user get-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager Environment |
Expand Down Expand Up @@ -61,6 +61,9 @@ if [ "$1" = "/usr/bin/dde-session" ]; then
fi
# set qt qpa platform type
export QT_QPA_PLATFORM="dxcb;xcb"
if [ -z "$XDG_CURRENT_DESKTOP" ]; then
export XDG_CURRENT_DESKTOP="DDE"
fi
# control qml softwarecontext in loongson-drm
get_graphics_drivers "driver=loongson-drm"
if [ $? -eq 0 ];then
Expand Down
2 changes: 2 additions & 0 deletions misc/xsessions/deepin.desktop.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ Name=deepin
Comment=Deepin Desktop Environment
Exec=@CMAKE_INSTALL_FULL_BINDIR@/dde-session
TryExec=@CMAKE_INSTALL_FULL_BINDIR@/dde-session
Type=Application
DesktopNames=DDE
Loading