torbrowser-overlay icon indicating copy to clipboard operation
torbrowser-overlay copied to clipboard

Error: cannot open display: :0

Open amano-kenji opened this issue 1 year ago • 10 comments

When I start torbrowser, I see

Error: cannot open display: :0

I'm on sway with Xwayland. Other X applications work fine.

amano-kenji avatar Nov 21 '24 23:11 amano-kenji

I neither use wayland, nor sway. So I can't reproduce the issue.

/usr/bin/torbrowser is actually a script, setting some environment variables. Maybe one of those is messing with your system?

MeisterP avatar Nov 22 '24 09:11 MeisterP

$ /usr/lib64/torbrowser/torbrowser
Error: cannot open display: :0

amano-kenji avatar Nov 23 '24 02:11 amano-kenji

If you don't require running torbrowser under X you can have it running under wayland natively instead. For testing you could run the following from the commandline:

$ MOZ_ENABLE_WAYLAND=1 torbrowser

I don't know if this will work for the compiled version as I am currently using the torbrowser-launcher.

t4chib4ne avatar Dec 04 '24 07:12 t4chib4ne

I don't know if this will work for the compiled version

You'd have to unmask the useflag to compile www-client/torbrowser with wayland support.

MeisterP avatar Dec 04 '24 07:12 MeisterP

I haven't unmasked wayland use flag, but equery u torbrowser says wayland use flag is enabled.

amano-kenji avatar Dec 04 '24 10:12 amano-kenji

Please post emerge --info www-client/torbrowser

MeisterP avatar Dec 04 '24 14:12 MeisterP

I haven't unmasked wayland use flag, but equery u torbrowser says wayland use flag is enabled.

It isn't. See: USE="X dbus jumbo-build pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp -clang -hardened -system-png (-wayland)"

MeisterP avatar Dec 05 '24 07:12 MeisterP

2024-12-05 18:34:54

amano-kenji avatar Dec 05 '24 09:12 amano-kenji

[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]

The I column shows how the package is installed.

 U I
 + - wayland         : Enable dev-libs/wayland backend

So torbrowser is installed with -wayland because the useflag is masked as mentioned in https://github.com/MeisterP/torbrowser-overlay/issues/83#issuecomment-2516443895

MeisterP avatar Dec 05 '24 09:12 MeisterP

This isn't fixed from my end, yet.

amano-kenji avatar Jun 19 '25 06:06 amano-kenji