#GTK cannot open display

70 messages · Page 1 of 1 (latest)

wooden junco
#

Hey do you have nvidia drivers ?

worldly jetty
#

Hey, no it's an amd or radeon drivers

wooden junco
#

Has it always been like this ?

#

Or was it after an update

worldly jetty
#

No since I installed arch ( 4 days ago)

ember dove
#

the default gnome terminal emulator is a gtk app

#

how is it working

worldly jetty
#

I forgot to say that I am on kde

ember dove
#

you are setting the display manually to :0

#

maybe it's the wrong display ?

worldly jetty
#

I've tried a lot of display

#

Like "", 0, 1 etc..

wooden junco
#

So yeah you got a working x config cause you're running kde but for whatever reason plank won't run

#

Did you try this
export DISPLAY=:0.0 (I know it should be set up automatically but someone had the same issue and fixed it like that)

worldly jetty
#

No it doesn't work

#

But this time I got a new error

wooden junco
#

Can you echo $XDG_SESSION_TYPE ?

worldly jetty
#

Sure, return wayland

wooden junco
#

Oh that's the issue then

#

But I wonder if it can't run via xwayland

#

Look the first line

#

You can always try to do this but I doubt this will work

#

XDG_SESSION_TYPE=x11 plank

worldly jetty
#

Yeah, it doesn't work

wooden junco
#

Do you know how to run x11 via sddm ?

#

If not you could look for latte dock it seems to work somehow on wayland

worldly jetty
#

No I dont know

wooden junco
#

Then if you're okay to try other docks you can try latte-dock

#

It's in the community repo

worldly jetty
#

Okay

worldly jetty
#

I have installed xcb

wooden junco
#

It's strange it tries to bind to xcb since you are on Wayland

golden pendant
#

okay

PLANK simply does not work on Wayland
which is gnome's default display server backend

#

so just get a plank alternative
in the form of a gnome extension, there's dash to dock

#

you can also try gnome's x11 mode

worldly jetty
#

Okay thanks you

ember dove
#

they can't use the dash to dock gnome extension

#

but they can use alternative docks that support wayland since their session is wayland

#

or they can just switch their session to Xorg

worldly jetty
#

Does latte dock use wayland ?

willow dock
#

youre running that app as root

#

in wayland

#

that is why

#

do
xhost +SI:localuser:root
in your regular user

worldly jetty
willow dock
#

as your regular user

#

not as root

worldly jetty
#

Yes look

willow dock
#

hmm

#

what does echo $DISPLAY say

worldly jetty
#

Nothing

#

An empty line

willow dock
#

wait why is $DISPLAY not set

worldly jetty
#

I don't know, how can I set it ?

willow dock
#

it should already be set by the de

ember dove
ember dove
#

xhost is an xorg tool

willow dock
ember dove
#

really ?

willow dock
#

yes

ember dove
#

i guess i am wrong then

worldly jetty
#

So, what should i do ?

willow dock
#

🤷‍♂️