sniffnet icon indicating copy to clipboard operation
sniffnet copied to clipboard

XOpenDisplayFailed

Open heweip opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] 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]

heweip avatar Sep 04 '23 01:09 heweip

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?

GyulyVGC avatar Sep 04 '23 08:09 GyulyVGC