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

XOpenDisplayFailed #366

Open
1 task done
heweip opened this issue Sep 4, 2023 · 1 comment
Open
1 task done

XOpenDisplayFailed #366

heweip opened this issue Sep 4, 2023 · 1 comment
Labels
bug Something isn't working Linux Something related to Linux operating system

Comments

@heweip
Copy link

heweip commented Sep 4, 2023

Is there an existing issue for this?

  • I have searched the existing issues.

What's the problem?

thread 'main' panicked at 'Failed to initialize any backend! Wayland status: XdgRuntimeDirNotSet X11 status: XOpenDisplayFailed', /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.27.5/src/platform_impl/linux/mod.rs:719:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

How did you install the app?

installed from crates.io

Operating System

Linux

Additional context

OS: CentOS Linux release 7.9.2009 (Core)
cargo install [email protected]

@GyulyVGC GyulyVGC added bug Something isn't working Linux Something related to Linux operating system labels Sep 4, 2023
@GyulyVGC
Copy link
Owner

GyulyVGC commented Sep 4, 2023

The same issue was solved in #11:

It's strange, but... I deleted my ~/.cargo folder and build every cargo app I have [...] now sniffnet run with libpcap blessing without problem. Huh. I tried in alacritty and wezterm.

It's not a definitive solution but deleting that folder and rebuilding the app solved the issue in the past.
If it doesn't solve the issue for you, can you also please try to download the provided RPM package from the release page?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Linux Something related to Linux operating system
Projects
None yet
Development

No branches or pull requests

2 participants