summaryrefslogtreecommitdiff
path: root/nongnu
diff options
context:
space:
mode:
authorJohn Kehayias <john.kehayias@protonmail.com>2022-10-14 13:23:57 -0400
committerJohn Kehayias <john.kehayias@protonmail.com>2022-10-14 13:23:57 -0400
commit208b549eb92d63f64c618f051b88b96d79b8d15d (patch)
treede14665d4f43be126a311575cb630fdc4880dbe2 /nongnu
parent20ca80db3cf136713a7026c0a270d175732005b6 (diff)
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).
Diffstat (limited to 'nongnu')
-rw-r--r--nongnu/packages/messaging.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/nongnu/packages/messaging.scm b/nongnu/packages/messaging.scm
index 1479db3..1d833e2 100644
--- a/nongnu/packages/messaging.scm
+++ b/nongnu/packages/messaging.scm
@@ -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"))