hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
305 stars 48 forks source link

issue exiting hyprland #274

Closed Masber closed 1 month ago

Masber commented 1 month ago

Dear Hyprland community,

I just manually built Hyprland from master branch (7564b26b7d386d248eaa47c1a481c09eefd8e3ca) on my Ubuntu 24.10 host,

I realised an issue when exiting Hyprland with the hyprctl dispatch exit command.

❯ alacritty
Error: Os(OsError { line: 786, file: "/home/msopena/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/mod.rs", error: Misc("neither WAYLAND_DISPLAY nor WAYLAND_SOCKET is set; note: enable the `winit/x11` feature to support X11") })

The workaround to this is to reboot the machine instead of using hyprctl dispatch exit but it would be nice if Hyprland could gracefully exit and take the user to GDM

thank you very much

Masber commented 1 month ago

I tried building hyprland from sources but using a release branch

❯ hyprctl version
Hyprland, built from branch  at commit 4520b30d498daca8079365bdb909a8dea38e8d55  (version: bump to 0.44.1).
Date: Wed Oct 9 14:54:39 2024
Tag: v0.44.1, commits: 5309
built against aquamarine 0.4.2

flags: (if any)

And now when I exit, gdm seems disabled and I end in a terminal