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.

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

Notes

Leave a Comment