nongnu: zoom: Fix SSO and browser communication.

* nongnu/packages/messaging.scm (zoom)[phases]{rename-binary}: New phase.
Rename the binary that is called by the wrapper.  The binary name must end in
"zoom" in order for IPC to work (for single sign-on and handling links from a
browser).
This commit is contained in:
John Kehayias 2022-10-14 13:23:57 -04:00
parent 20ca80db3c
commit 208b549eb9
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -396,7 +396,17 @@ or iOS.")
"pango"
"pulseaudio"
"zlib")))))))
(add-after 'wrap-where-patchelf-does-not-work 'symlink-binaries
(add-after 'wrap-where-patchelf-does-not-work 'rename-binary
;; IPC (for single sign-on and handling links) fails if the
;; name does not end in "zoom," so rename the real binary.
;; Thanks to the Nix packagers for figuring this out.
(lambda _
(rename-file (string-append #$output "/lib/zoom/.zoom-real")
(string-append #$output "/lib/zoom/.zoom"))
(substitute* (string-append #$output "/lib/zoom/zoom")
(("zoom-real")
"zoom"))))
(add-after 'rename-binary 'symlink-binaries
(lambda _
(delete-file (string-append #$output "/environment-variables"))
(mkdir-p (string-append #$output "/bin"))