From 0ba8c04155af56c88931e2c17457bacc2e55c636 Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Thu, 17 Apr 2025 17:08:57 -0500 Subject: [PATCH] add desktop patch --- gchannel/packages/synergy.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gchannel/packages/synergy.scm b/gchannel/packages/synergy.scm index c310972..e87dc39 100644 --- a/gchannel/packages/synergy.scm +++ b/gchannel/packages/synergy.scm @@ -55,6 +55,12 @@ (lambda* (#:key #:allow-other-keys) (system* "sed" "-i" "s|set(CMAKE_INSTALL_PREFIX /usr)| |g" "cmake/Packaging.cmake") #t)) ; + (add-after 'install 'patch-desktop + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* (string-append out "/share/applications/synergy.desktop") + (("/usr") out)) + #t))) ))) (native-inputs (list qttools pkg-config)) ; for Qt5LinguistTools