File Clipboard_plugin_path.patch of Package Clipboard

Index: Clipboard-0.7.0/src/cb/src/x11wl.cpp
===================================================================
--- Clipboard-0.7.0.orig/src/cb/src/x11wl.cpp
+++ Clipboard-0.7.0/src/cb/src/x11wl.cpp
@@ -18,11 +18,11 @@
 #include <optional>
 #include <type_traits>
 
-constexpr auto objectX11 = "libcbx11.so";
+constexpr auto objectX11 = "__LIBDIR__/Clipboard/plugins/libcbx11.so";
 constexpr auto symbolGetX11Clipboard = "getX11Clipboard";
 constexpr auto symbolSetX11Clipboard = "setX11Clipboard";
 
-constexpr auto objectWayland = "libcbwayland.so";
+constexpr auto objectWayland = "__LIBDIR__/Clipboard/plugins/libcbwayland.so";
 constexpr auto symbolGetWaylandClipboard = "getWaylandClipboard";
 constexpr auto symbolSetWaylandClipboard = "setWaylandClipboard";
 
@@ -115,4 +115,4 @@ void writeToGUIClipboard(const Clipboard
     } catch (const std::exception& e) {
         debugStream << "Error setting clipboard data: " << e.what() << std::endl;
     }
-}
\ No newline at end of file
+}
Index: Clipboard-0.7.0/src/cbwayland/CMakeLists.txt
===================================================================
--- Clipboard-0.7.0.orig/src/cbwayland/CMakeLists.txt
+++ Clipboard-0.7.0/src/cbwayland/CMakeLists.txt
@@ -71,4 +71,4 @@ target_include_directories(cbwayland PRI
   ${GENERATED_INCLUDE_DIR}
 )
 
-install(TARGETS cbwayland LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+install(TARGETS cbwayland LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/Clipboard/plugins)
Index: Clipboard-0.7.0/src/cbx11/CMakeLists.txt
===================================================================
--- Clipboard-0.7.0.orig/src/cbx11/CMakeLists.txt
+++ Clipboard-0.7.0/src/cbx11/CMakeLists.txt
@@ -11,4 +11,4 @@ enable_lto(cbx11)
 
 target_include_directories(cbx11 PRIVATE ${X11_INCLUDE_DIR})
 
-install(TARGETS cbx11 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+install(TARGETS cbx11 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/Clipboard/plugins)
openSUSE Build Service is sponsored by