You are not logged in.

#1 2021-01-12 13:39:44

callmer
Member
Registered: 2021-01-07
Posts: 80

[SOLVED]xrdb: connection refused xrdb: can't open display :'0'

I am new at arch. I am using sway (wayland wiithout x). So when I xrdb ~/.Xresources, I get these errors. Maybe this is because of wayland?
EDIT: got the same error when i tried to lunch urxvt terminal
urxvt: can't open display:0, aborting

Last edited by callmer (2021-01-13 14:30:48)

Offline

#2 2021-01-12 16:19:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,624

Re: [SOLVED]xrdb: connection refused xrdb: can't open display :'0'

Maybe this is because of wayland?

Yes.

urxvt: can't open display:0, aborting

You'll need https://archlinux.org/packages/extra/x8 … -xwayland/ to run xorg applications, but if you intend to run mostly X11 clients on wayland you're most likely better off just using X11 instead of an X11 emulation on wayland.

Offline

#3 2021-01-12 16:43:19

callmer
Member
Registered: 2021-01-07
Posts: 80

Re: [SOLVED]xrdb: connection refused xrdb: can't open display :'0'

seth wrote:

Maybe this is because of wayland?

Yes.

urxvt: can't open display:0, aborting

You'll need https://archlinux.org/packages/extra/x8 … -xwayland/ to run xorg applications, but if you intend to run mostly X11 clients on wayland you're most likely better off just using X11 instead of an X11 emulation on wayland.

Can you please explain? I read that wayland is better then x, so I installed sway for it. But does it make sense if I need also xorg(or x server or x window system, I can't differ them), isn't it more efficient to not install wayland? Or is there any possibilty to use such a things without x?

Offline

#4 2021-01-12 16:48:51

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: [SOLVED]xrdb: connection refused xrdb: can't open display :'0'

It depends on usage, Xorg is the legacy standard of sorts and many things will depend on it for years to come, even if people call it abandonware.

If you like it, use it, if you don’t, then don’t, your computer is yours in the end, you are the user.


My reposSome snippets

Heisenberg might have been here.

Offline

#5 2021-01-12 16:58:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,624

Re: [SOLVED]xrdb: connection refused xrdb: can't open display :'0'

I read that wayland is better than x

I read that Donald Trump is a very stable genius… sometimes it's a good idea to question stuff you read, esp. when it's an absolute statement.

Wayland is a more "modern" display server, it's more efficient in handling output buffers and carries less features considered cruft (X11 is hardly used as it was designed > 30 years ago), but it's also more fragmented (may wayland stuff is not compatible to yoru wayland stuff) because the protocol is still somewhat in flux and it has far less native client support… because it's new.

The question you need to ask and answer is "is it better for my use case".
If you intend to run urxvt (an X11 terminal emulator) on a nested X11 server (xwayland) on top of wayland the answer is probably not "yes".
You could eg. try a TE w/ native wayland support (alacritty or foot - latter is "only" in AUR) and gtk+ and Qt have wayland support as well (so will most clients implemented using those toolkits)

Offline

#6 2021-01-12 17:00:15

callmer
Member
Registered: 2021-01-07
Posts: 80

Re: [SOLVED]xrdb: connection refused xrdb: can't open display :'0'

@seth, @Gaku999 I don't understand the difference, and why isn't there native wayland clients for it? Can you please refer me to some detail explanations,courses,literature. I couldn't find any good source at all about GUI s, Window systems.

Offline

#7 2021-01-12 17:25:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,624

Re: [SOLVED]xrdb: connection refused xrdb: can't open display :'0'

wayland and X11 are (technically actually protocols for) display servers, kinda the canvas applications paint their windows on.
If the application is written to paint on an X11 canvas, it cannot paint on a wayland canvas (incompatible brush), so you need to glue an X11 canvas on the wayland canvas (xwayland) where the X11 client can paint on.

why isn't there native wayland clients for it

Because some clients contain a lot of X11 specific code and porting them to wayland would be a PITA that so far (again: wayland is new, X11 is > 30 years old) nobody was willing to take.

Offline

#8 2021-01-13 05:36:49

callmer
Member
Registered: 2021-01-07
Posts: 80

Re: [SOLVED]xrdb: connection refused xrdb: can't open display :'0'

ok, thank you very much
edit: how can I mark your answer as a solution?

Last edited by callmer (2021-01-13 05:37:35)

Offline

#9 2021-01-13 08:13:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,624

Re: [SOLVED]xrdb: connection refused xrdb: can't open display :'0'

You can't.
You can mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB