said Gene Heskett:
| Re the sudo -E:
| from wheezy thru jessie and stretch its been required since X would not
| allow root to use it without it, but I just went to a buster machine and
| I'll be dipped, it worked without the -E on a buster/xfce4 install.
What happens if you do
$ xhost + localhost
before you execute your sudo command? here it gives root access to x in a
user terminal, so you can type your command in the terminal and get a nice
little session running x as root.
--
dep
Pictures:
http://www.ipernity.com/doc/depscribe/album
Column:
https://ofb.biz/author/dep/