Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: cannot open display: :0 #83

Open
amano-kenji opened this issue Nov 21, 2024 · 10 comments
Open

Error: cannot open display: :0 #83

amano-kenji opened this issue Nov 21, 2024 · 10 comments

Comments

@amano-kenji
Copy link

amano-kenji commented Nov 21, 2024

When I start torbrowser, I see

Error: cannot open display: :0

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

@MeisterP
Copy link
Owner

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?

@amano-kenji
Copy link
Author

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

@t4chib4ne
Copy link
Contributor

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.

@MeisterP
Copy link
Owner

MeisterP commented Dec 4, 2024

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.

@amano-kenji
Copy link
Author

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

@MeisterP
Copy link
Owner

MeisterP commented Dec 4, 2024

Please post emerge --info www-client/torbrowser

@amano-kenji
Copy link
Author

emerge.info.txt

@MeisterP
Copy link
Owner

MeisterP commented Dec 5, 2024

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)"

@amano-kenji
Copy link
Author

2024-12-05 18:34:54

@MeisterP
Copy link
Owner

MeisterP commented Dec 5, 2024

[ 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 #83 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants