fix: Treeland does not exit when logging out of session

only treeland-session-shutdown.service can be clean TREELAND_RUN_MODE.

treeland-session-shutdown.service need TREELAND_RUN_MODE env, but
environment unset before treeland service stop.

Log:
This commit is contained in:
Zhang Dingyuan 2025-07-01 12:23:25 +08:00 committed by rewine
parent b9d8d7a756
commit da8cf4ad11
1 changed files with 0 additions and 1 deletions

View File

@ -28,7 +28,6 @@ UnsetEnvironment=WAYLAND_DISPLAY
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/treeland
ExecStartPost=-/usr/bin/systemctl --user set-environment XDG_SESSION_DESKTOP=Treeland
ExecStop=-/usr/bin/systemctl --user unset-environment XDG_SESSION_DESKTOP
ExecStop=-/usr/bin/systemctl --user unset-environment TREELAND_RUN_MODE
Slice=session.slice
Restart=on-failure
RestartSec=1s