Skip to content

bug: randr plugin (and anyrun as a whole) panics on Hyprland 0.40.0 #153

@peppidesu

Description

@peppidesu

Steps to reproduce:

  • install and run Hyprland >0.40.0
  • open anyrun

Expected behavior:

  • anyrun opens without issues

Actual behavior:

  • anyrun panics:
    thread '<unnamed>' panicked at 'A error occured while parsing the output from the hypr socket: IoError(Os { code: 2, kind: NotFound, message: "No such file or directory" })', /home/peppidesu/.cargo/registry/src/github.com-1ecc6299db9ec823/hyprland-0.3.9/src/data/regular.rs:31:19
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
    thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', plugins/randr/src/lib.rs:106:1
    thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Any { .. }', plugins/randr/src/lib.rs:37:1
    
    file:plugins/randr/src/lib.rs
    line:37
    Attempted to panic across the ffi boundary.
    Aborting to handle the panic...
    

Reason:
Hyprland has moved the hyprland socket from /tmp/hypr to $XDG_RUNTIME_DIR in 0.40.0. This change has been merged into hyprland-rs:master and is included in version 0.4.0-alpha.1, but is not yet included in the latest stable release.

Solution:
Either:

  • wait for the next release of hyprland-rs, and change the package version in plugins/randr/Cargo.toml.
  • temporarily use the alpha release of hyprland-rs
    hyprland = "0.4.0-alpha.1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions