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.


The error message received for say:

sudo synaptic

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


Add to ~/.bashrc

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


Leave a Comment