Skip to content

Linux Hotkeys needs sudo to work #581

@ThomasT75

Description

@ThomasT75

Issue description
Not using sudo It won't print "num1" with, or without focus
Using sudo It will print "num1" with, or without focus
I tested both master, and latest release

Minimal reproducible example:

fn main() {
    let hk_hook = livesplit_core::hotkey::Hook::new().unwrap();
    hk_hook.register(livesplit_core::hotkey::KeyCode::Numpad1, || {
        println!("num1")
    }).unwrap();
    loop{}
}

System Info:
Distro: Arch
Kernel: 5.19.13-zen1-1-zen (64-bit)

livesplit-core versions:
401b70f
0.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThere is a bug.hotkeyThis is about the hotkey implementation.needs further discussionIt is unclear how to progress without making further decisions.priority: highThis is a high priority issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions