Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux.fedora > #332

Re: Missing X server or $DISPLAY

From Jukka Lahtinen <jtfjdehf@hotmail.com.invalid>
Newsgroups alt.os.linux.fedora
Subject Re: Missing X server or $DISPLAY
Date 2025-08-01 09:50 +0300
Organization A noiseless patient Spider
Message-ID <875xf7mt6f.fsf@sonera.fi> (permalink)
References <87y0s4oun4.fsf@sonera.fi> <slrn108ntok.r023.lars@cleo.beagle-ears.com>

Show all headers | View raw


Lars Poulsen <lars@cleo.beagle-ears.com> writes:
> On 2025-07-31, Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> wrote:
>> Using a search engine, I found a hint suggesting to set the DISPLAY
>> variable with
>> export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print
>> $2; exit;}'):0.0
>> and another one suggesting
>> export DISPLAY=unix:0.0
>>
>> Neither of those helped.
>> With the latter setting, brave-browser gives the same error message as
>> before, seamonkey says
>> Error: cannot open display: unix:0.0
>
> I use GNOME, not KDE, and have not had such a problem.
> But when I oipen a terminal window to display the DISPLAY environment
> variable, the value is just ":0"
>
> So try     " export DISPLAY=:0 "

That didn't help either. Error message from seamonkey was
Error: cannot open display: :0
I think I already tried that too, but forgot to mention.

> What goes before the colon is a host name. Normally, that would be
> "localhost" (127.0.0.1), but I believe that is the default if none is
> given. But that should have been set when wayland started and inherited
> by everything in the process tree below.

Funny, my /etc/resolv.conf has the line
nameserver 127.0.0.53
so that's what the first fix suggestion I found ended up using.
Anyway, setting DISPLAY to 127.0.0.1:0 didn't help either.

> Of course, the terminal window from which you started KDE and wayland in
> the first place is not running under the GUI, so if you try to start a
> GUI application from there, it will not work, and you might get exactly
> what you describe.

I didn't start KDE from a terminal WINDOW, but a fullscreen virtual
terminal, tty. 
There were no windows before starting the gui.
Trying to start seamonkey or brave from a window in kde gui is how I got
the error messages I mentioned. The desktop icons didn't display any
messages, so I tried starting them from a Konsole window.

Both browsers worked fine before installing this week's upgrade packages.

-- 
Jukka Lahtinen

Back to alt.os.linux.fedora | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Missing X server or $DISPLAY Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2025-08-01 01:36 +0300
  Re: Missing X server or $DISPLAY Lars Poulsen <lars@cleo.beagle-ears.com> - 2025-07-31 23:07 +0000
    Re: Missing X server or $DISPLAY Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2025-08-01 09:50 +0300
      Re: Missing X server or $DISPLAY Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2025-08-01 11:21 +0300

csiph-web