ChrisTitusTech / hyprland-titus

My config files for Hyprland Wayland Window Manager
636 stars 86 forks source link

fix gparted, timeshift and other programs not launching with message `Authorization required, but no authorization protocol specified` #48

Open Book-reader opened 2 months ago

Book-reader commented 2 months ago

this pr adds xhost +SI:localuser:root to exec-once, allowing gparted, timeshift and other xwayland apps running as root to open. what xhost +SI:localuser:root does is it allows the local user root to access the xwayland display of the logged in user, which gparted needs as it runs as root under xwayland.

it fixes this message when trying to run gparted under wayland:

Authorization required, but no authorization protocol specified
cannot open display: :0