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

No such file or directory on start #66

Open
yuvadm opened this issue Sep 10, 2023 · 1 comment
Open

No such file or directory on start #66

yuvadm opened this issue Sep 10, 2023 · 1 comment

Comments

@yuvadm
Copy link

yuvadm commented Sep 10, 2023

Running this on Arch with Rust 1.72.0 -

$ cargo run --release
    Finished release [optimized] target(s) in 0.04s
     Running `target/release/btknmle`
Error: No such file or directory (os error 2)

Bluetoothd isn't running, libinput package is installed. What am I missing?

@yskszk63
Copy link
Owner

Some were not documented.

  1. Requires root privileges
    • cargo build && sudo ./target/debug/btknmle
    • Or add the following to .cargo/config to make cargo run work with sudo.
[target.x86_64-unknown-linux-gnu]
runner = 'sudo -E'
  1. State file
    • State file is required. The default is /var/lib/btknmle/db.toml, but it does not create a directory.Therefore, either of the following is required
      • mkdir /var/lib/btknmle or
      • cargo run -- -f /tmp/btknmle.toml

Sorry for your interest, but perhaps it may not work in your environment.
It did not work as expected when I got it to work in my environment, which is different from before...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants