Skip to content

Commit 816e776

Browse files
yixinsharkwineee
authored andcommitted
fix: unset systemd-user's DISPLAY env when system logs out
The DISPLAY environment variable should be reset when logging out of the system to avoid the dde-session using the wrong DISPLAY environment variable in a multi-user login situation. Log: as title Pms: BUG-314781
1 parent 59b68b3 commit 816e776

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

systemd/dde-session-manager.service.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ NotifyAccess=main
1919
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/dde-session --systemd-service
2020
ExecStopPost=@CMAKE_INSTALL_FULL_LIBEXECDIR@/dde-session-ctl --shutdown
2121
ExecStopPost=-/bin/sh -c 'test "$SERVICE_RESULT" != "exec-condition" && systemctl --user unset-environment XDG_CURRENT_DESKTOP'
22+
ExecStopPost=-/bin/sh -c 'test "$SERVICE_RESULT" != "exec-condition" && systemctl --user unset-environment DISPLAY'
2223
Slice=session.slice

0 commit comments

Comments
 (0)