f24 cannot open display: :0 NOT using wayland!?
Programs like gedit gparted or even xrandr are failing with the error stated above. Booting into GNOME or KDE won't help. I tried everything that I found on google.
Even xauth +
will result in the same error.
export DISPLAY=:0
is set permanently in /etc/environment
.
I don't know what I am missing here.
Two questions. First, are you aware that F 24 has long passed End Of Life, and second, are you trying to run these programs as a regular user, or with
sudo
?I found this issue while preparing my system for an update. The programs wont work when I invoke them as root
su -
The
DISPLAY
variable is not supposed to be set by/etc/environment
That is the job if the display manager such asgdm
,xdm
, orlightdm
. The displaymanager also set theXAUTHORITY
variable referring to a dynamic generated file somewhere.I set the
DISPLAY
variable as a possible fix. Because bothDISPLAY
andXAUTHORITY
were empty.Then I guess you are using wayland after all.