Closed dnlfurtek closed 3 weeks ago
Thanks for the detailed report!
I have 3 machines using arch (btw), but all of them headless servers.
I used to test the linux cli compatibiity on one of them a while back and (IIRC) saw the same error there, because well it was a headless server with no window manager or anything. I got it working on there by manually running a wayland compositor weston --no-config --socket=wl-test-env --backend=headless
and then running the tool with an explicit request to use that: env WAYLAND_DISPLAY=wl-test-env PATH_TO_HELPER
. That means wayland should be compatible, I was just expecting it to correctly pick all of that up, when running in an actual wm/de. Guess I was wrong...
You might have some luck explicitly setting WAYLAND_DISPLAY
to the hyprland compositor, or somehow making it fall back to Xorg compatibility mode or something. I don't know what the hyprland experience is like, but I remember wasting a day getting sway working on an nvidia machine a year ago and pretty much everything had some sort of problem, or was straight up not working... so yeah, if that does not work, I am probably not going to be able to help you, I am not too keen on debugging linux compositor errors again 😅
I am using Arch Linux (btw), with hyprland, and wayland (which I think may be the root of this issue.).
After downloading linux-musl, and running the program I get the following log in console:
2024-07-29 11:29:18 | INFO | sf_scrapbook_helper:105 | Starting up thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/iced_winit-0.12.2/src/application.rs:119:10: Create event loop: Os(OsError { line: 80, file: "/usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/wayland/event_loop/mod.rs", error: WaylandError(Connection(NoWaylandLib)) }) note: run with
RUST_BACKTRACE=1
environment variable to display a backtrace /home/daniel/Downloads/sf-scrapbook-helper_v0.2.3_x86_64-unknown-linux-musl/sf-scrapbook-helper failed with error: signal: aborted (core dumped)Steps to reproduce: