kdotool icon indicating copy to clipboard operation
kdotool copied to clipboard

Error: "Object path was not valid: '/Scripting/Script-1'"

Open ave-63 opened this issue 11 months ago • 2 comments

Hi, thanks for this great tool. It was working for me 30 minutes ago; then I wrote a few more kdotool commands, put them all in a script for startup, logged out and back in to test it, and suddenly I can't run kdotool at all:

ben@tp4 kdotool $ /home/ben/nxc/scripts/kdotool/target/debug/kdotool search
thread 'main' panicked at /home/ben/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dbus-0.9.7/src/strings.rs:187:1:
called `Result::unwrap()` on an `Err` value: "Object path was not valid: '/Scripting/Script-1'"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

ben@tp4 kdotool $ RUST_BACKTRACE=1 /home/ben/nxc/scripts/kdotool/target/debug/kdotool search
thread 'main' panicked at /home/ben/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dbus-0.9.7/src/strings.rs:187:1:
called `Result::unwrap()` on an `Err` value: "Object path was not valid: '/Scripting/Script-1'"
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: core::result::Result<T,E>::unwrap
             at /usr/src/debug/rust/rustc-1.76.0-src/library/core/src/result.rs:1073:23
   4: <dbus::strings::Path as core::convert::From<alloc::string::String>>::from
             at /home/ben/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dbus-0.9.7/src/strings.rs:101:67
   5: <T as core::convert::Into<U>>::into
             at /usr/src/debug/rust/rustc-1.76.0-src/library/core/src/convert/mod.rs:757:9
   6: dbus::blocking::Connection::with_proxy
             at /home/ben/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dbus-0.9.7/src/blocking.rs:161:67
   7: kdotool::main
             at ./src/main.rs:676:24
   8: core::ops::function::FnOnce::call_once
             at /usr/src/debug/rust/rustc-1.76.0-src/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Any ideas? I'm using arch, with KDE 6, and wayland.

ave-63 avatar Mar 08 '24 20:03 ave-63