hyprwm / xdg-desktop-portal-hyprland

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

Detect missing qt5/6-wayland #91

Closed ItsDrike closed 1 year ago

ItsDrike commented 1 year ago

This is a feature request about an issue described in #82. Currently, the portal will hard crash if qt5-wayland or qt6-wayland is not installed, without much helpful information anywhere in the logs on what's going on.

It would be nice if the portal was able to inform you about this missing dependency instead, preventing a lot of potential confusion. Even just making the crash contain a message about a missing dependency would be fine, though ideally, it'd be great if the portal opened a graphical window informing you that this dependency isn't installed.

A GUI window would be better since many people might still not realize where to even look for this. All that the user might see is that clicking on "select window" or similar buttons that should spawn the portal window picker actually won't do anything. However I'm not sure if a window like this would be easily achievable, considering that the window itself might need to use qt to actually be rendered. Perhaps a hyprland notification can be used instead? Or at least a regular xdg notification, though this might not be ideal for people who don't have a notification daemon installed.

vaxerski commented 1 year ago

why didnt this shit auto close

done :)

vaxerski commented 1 year ago

AW FUCK WRONG BRANCH AAAAAAAAA