From c0c439a4d12316d86d496b2a2cb5704afa6a9a3b Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sun, 22 Sep 2019 16:43:58 +0200 Subject: [PATCH] Fix clipboard backend on urxvt terminal --- Cargo.lock | 2 +- Cargo.toml | 2 +- native/liblinuxbridge/bridge.cpp | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 64d2556..42da972 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -223,7 +223,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "espanso" -version = "0.1.1" +version = "0.1.2" dependencies = [ "backtrace 0.3.37 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 32bfa08..96badaa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "espanso" -version = "0.1.1" +version = "0.1.2" authors = ["Federico Terzi "] license = "GPL-3.0" description = "Cross-platform Text Expander written in Rust" diff --git a/native/liblinuxbridge/bridge.cpp b/native/liblinuxbridge/bridge.cpp index d8d4012..6cb4bf8 100644 --- a/native/liblinuxbridge/bridge.cpp +++ b/native/liblinuxbridge/bridge.cpp @@ -376,6 +376,8 @@ int32_t is_current_window_terminal() { if (res > 0) { if (strstr(class_buffer, "terminal") != NULL) { return 1; + }else if (strstr(class_buffer, "URxvt") != NULL) { // Manjaro terminal + return 1; } }