Repository: espanso/espanso (language: rust)

Issue:
Copy Paste loosing after uses 
Hi,

I use espanso with Windows 10. I loose paste function after using espanso.

To retrieve it, i need to reload config.

Thx


Discussion / hints:

Fix patch:
diff --git a/build.rs b/build.rs
index ca8571f6..433fb3e3 100644
--- a/build.rs
+++ b/build.rs
@@ -28,6 +28,10 @@ fn get_config() -> PathBuf {
 fn print_config() {
     println!("cargo:rustc-link-lib=static=winbridge");
     println!("cargo:rustc-link-lib=dylib=user32");
+    #[cfg(target_env = "gnu")]
+    println!("cargo:rustc-link-lib=dylib=gdiplus");
+    #[cfg(target_env = "gnu")]
+    println!("cargo:rustc-link-lib=dylib=stdc++");
 }
 
 #[cfg(target_os = "linux")]
diff --git a/native/libwinbridge/bridge.cpp b/native/libwinbridge/bridge.cpp
index ede25287..91ff5a43 100644
--- a/native/libwinbridge/bridge.cpp
+++ b/native/libwinbridge/bridge.cpp
@@ -27,7 +27,15 @@
 
 #define UNICODE
 
+#ifdef __MINGW32__
+# ifndef WINVER
+#  define WINVER 0x0606
+# endif
+# define STRSAFE_NO_DEPRECATE
+#endif
+
 #include <windows.h>
+#include <winuser.h>
 #include <strsafe.h>
 #include <shellapi.h>
 
diff --git a/packager/mac/espanso.rb b/packager/mac/espanso.rb
index 399f151b..10f0e2bf 100644
--- a/packager/mac/espanso.rb
+++ b/packager/mac/espanso.rb
@@ -4,7 +4,7 @@
 class Espanso < Formula
   desc "{{{app_desc}}}"
   homepage "{{{app_url}}}"
-  url "https://github.com/federico-terzi/espanso/releases/v{{{app_version}}}/download/espanso-mac.tar.gz"
+  url "https://github.com/federico-terzi/espanso/releases/download/v{{{app_version}}}/espanso-mac.tar.gz"
   sha256 "{{{release_hash}}}"
   version "{{{app_version}}}"
 
@@ -17,5 +17,5 @@ def install
     bin.install "espanso"
 
     resource("modulo").stage { bin.install "modulo-mac" => "modulo" }
-  end  
-end
\ No newline at end of file
+  end
+end
diff --git a/src/res/mac/modulo.plist b/src/res/mac/modulo.plist
index 9883bd42..3bf440aa 100644
--- a/src/res/mac/modulo.plist
+++ b/src/res/mac/modulo.plist
@@ -9,7 +9,7 @@
 	<key>CFBundleIconFile</key>
 	<string>AppIcon</string>
 	<key>CFBundleIconName</key>
-	<string>AppIcon</string>>
+	<string>AppIcon</string>
 	<key>CFBundleIdentifier</key>
 	<string>com.federicoterzi.modulo</string>
 	<key>CFBundleInfoDictionaryVersion</key>


Test patch: