niri-session: Also unset DISPLAY
Browse files at this commitbc0a06226a03768519790917ff310df0e01de705Parent: ed799f51 changed file +1 -1
- resources/niri-session +1 -1
resources/niri-sessionmodified+1 -1
| @@ -50,7 +50,7 @@ if hash systemctl >/dev/null 2>&1; then | |||
| 50 | systemctl --user start --job-mode=replace-irreversibly niri-shutdown.target | 50 | systemctl --user start --job-mode=replace-irreversibly niri-shutdown.target |
| 51 | 51 | ||
| 52 | # Unset environment that we've set. | 52 | # Unset environment that we've set. |
| 53 | - systemctl --user unset-environment WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP NIRI_SOCKET | 53 | + systemctl --user unset-environment WAYLAND_DISPLAY DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP NIRI_SOCKET |
| 54 | elif hash dinitctl >/dev/null 2>&1; then | 54 | elif hash dinitctl >/dev/null 2>&1; then |
| 55 | # Check that the user dinit daemon is running | 55 | # Check that the user dinit daemon is running |
| 56 | if ! pgrep -u "$(id -u)" dinit >/dev/null 2>&1; then | 56 | if ! pgrep -u "$(id -u)" dinit >/dev/null 2>&1; then |