gnu: signal-desktop: Fix .desktop file.

Fix launching signal-desktop via its .desktop file (e.g. in a desktop
environment or launcher).  This also affects element-desktop (to be fixed in
next commit).

Fixes #274.

* nongnu/packages/messaging.scm (signal-desktop)[phases]{unpack}: Fix the
.desktop file binary location to be 'bin' rather than 'lib/Signal'.
This commit is contained in:
John Kehayias 2023-08-06 12:27:22 -04:00
parent 454aa47bee
commit 6a752f24d3
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -132,7 +132,7 @@ its core.")
;; Fix the .desktop file binary location. ;; Fix the .desktop file binary location.
(substitute* '("share/applications/signal-desktop.desktop") (substitute* '("share/applications/signal-desktop.desktop")
(("/opt/Signal/") (("/opt/Signal/")
(string-append #$output "/lib/Signal/"))))) (string-append #$output "/bin/")))))
(add-after 'install 'symlink-binary-file-and-cleanup (add-after 'install 'symlink-binary-file-and-cleanup
(lambda _ (lambda _
(delete-file (string-append #$output "/environment-variables")) (delete-file (string-append #$output "/environment-variables"))