Workaround sudo GUI for Wayland-X11 apps.

Related: SSH Agent on WSL/Ubuntu 17.10


Since Ubuntu gave up on Mir Desktop and left Unity Desktop behind, here is a workaround for an Ubuntu/Wayland GUI sudo permissions issue in Ubuntu 17.10.

Wayland X11 permissions error

The error message received for say:

sudo synaptic

No protocol specified. Unable to init server **: cannot open display: :0.

Fix

Add to ~/.bashrc

xhost +si:localuser:root > /dev/null

Reference

Debian Wayland

Leave a Comment