In certain unusual scenarios where the $PATH starts or contains a directory inaccessible to the user, running "/usr/lib/xdg-desktop-portal-hyprland" may produce the following error:
This error occurs because the function "std::filesystem::exists" breaks when encountering such an error. To address this issue, I propose replacing it with "access" which can verify permissions and return true if the executable exists.
In certain unusual scenarios where the $PATH starts or contains a directory inaccessible to the user, running "/usr/lib/xdg-desktop-portal-hyprland" may produce the following error:
This error occurs because the function "std::filesystem::exists" breaks when encountering such an error. To address this issue, I propose replacing it with "access" which can verify permissions and return true if the executable exists.