Toqozz / wired-notify

Lightweight notification daemon with highly customizable layout blocks, written in Rust.
MIT License
608 stars 28 forks source link

Error with recents versions. #109

Closed AndresD172 closed 2 years ago

AndresD172 commented 2 years ago

Hello!

Recently, I compiled Wired to upgrade the old version I had installed in my PC. Wired compiled fine, but when I tried to run it the only message that I got in terminal is:

"thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }', src/cli.rs:50:47 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace"

An then, Wired crashes.

Edit: Using sudo, Wired works. The problem only appear when I run Wired as a normal user.

Sincerely, Andrés.

Toqozz commented 2 years ago

Hmm. It looks like it's having trouble removing the old socket, maybe it's owned by a different user or something? Can you try manually remove /tmp/wired.sock? (or reboot, which should do the same thing).

Edit: oh, it's probably that once you run wired as root it will create the socket file as root, and then the file will need to be manually removed. Maybe I can add some help messages there.