Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyprland doesn't clean up its Wayland sockets after exit #4226

Open
appsforartists opened this issue Dec 23, 2023 · 12 comments
Open

hyprland doesn't clean up its Wayland sockets after exit #4226

appsforartists opened this issue Dec 23, 2023 · 12 comments
Labels
1: med prio Medium priority bug Something isn't working

Comments

@appsforartists
Copy link

Hyprland Version

0.32.3

Bug or Regression?

Bug

Description

Hyprland sets WAYLAND_DISPLAY when it starts up, but doesn't release it when quit. This prevents other sessions (like gamescope) from starting correctly.

On my system, exiting Hyprland leaves me in a loop of this printing to the console:

DEBUG Using pkexec loader
DEBUG Found wayland session

until I hold the power button down long enough for the firmware to kill the OS.

How to reproduce

  1. systemctl --user show-environment before starting Hyprland. Observe that WAYLAND_DISPLAY is unset.
  2. Start a Hyprland session.
  3. hyprctl dispatch exit
  4. systemctl --user show-environment Observe that WAYLAND_DISPLAY is still set to wayland-1.
  5. Observe that /run/user/1000/wayland-1 still exists (when it should have been cleaned up during exit).

Crash reports, logs, images, videos

No response

@appsforartists appsforartists added the bug Something isn't working label Dec 23, 2023
@vaxerski
Copy link
Member

maybe hyprland crashed? is there a crash report?

@appsforartists
Copy link
Author

This happens consistently for me when I try to exit Hyprland, so I don't think it's a crash.

Where would I find a crash report?

@vaxerski
Copy link
Member

$XDG_CACHE_HOME/hyprland or ~/.hyprland

@appsforartists
Copy link
Author

No such file or directory for both.

@vaxerski
Copy link
Member

dam

@thomascft
Copy link

I'm having the same issue.

@wvffle
Copy link

wvffle commented Mar 3, 2024

I can confirm the issue. When hyprctl dispatch exit is run, systemctl --user show-environment still shows WAYLAND_DISPLAY=wayland-1 and there is no crash log.

@thomascft
Copy link

Sounds like the issue may be with wlroots itself. Someone reported the same issue with sway here: Jovian-Experiments/Jovian-NixOS#267

@appsforartists
Copy link
Author

cc @emersion

@emersion
Copy link

emersion commented Mar 5, 2024

wlroots is not involved in the systemd environment stuff.

@vaxerski
Copy link
Member

vaxerski commented Mar 5, 2024

yeah sorry simon idk why they pinged you

@izmyname
Copy link

I can confirm the issue. When hyprctl dispatch exit is run, systemctl --user show-environment still shows WAYLAND_DISPLAY=wayland-1 and there is no crash log.

Aquamarine doesn't clean up WAYLAND_DISPLAY, either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1: med prio Medium priority bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants