mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-11-25 18:08:09 +01:00
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:
parent
20ca80db3c
commit
208b549eb9
1 changed files with 11 additions and 1 deletions
|
@ -396,7 +396,17 @@ or iOS.")
|
||||||
"pango"
|
"pango"
|
||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
"zlib")))))))
|
"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 _
|
(lambda _
|
||||||
(delete-file (string-append #$output "/environment-variables"))
|
(delete-file (string-append #$output "/environment-variables"))
|
||||||
(mkdir-p (string-append #$output "/bin"))
|
(mkdir-p (string-append #$output "/bin"))
|
||||||
|
|
Loading…
Reference in a new issue