Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zoom-us: fix web login #76056

Merged
merged 2 commits into from Dec 22, 2019
Merged

zoom-us: fix web login #76056

merged 2 commits into from Dec 22, 2019

Conversation

danbst
Copy link
Contributor

@danbst danbst commented Dec 19, 2019

Fixes #75903
Partially helps with #73532, because it is now possible to disable embeddedBrowserForSSOLogin and login via browser

cc @dtzWill @tadfisher @mkg20001 @pbogdan

cc @worldofpeace @bjornfor @ttuegel maybe it is possible to reuse existing wrapper, I haven't found a way.

Copy link
Contributor

@bjornfor bjornfor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. But please prefix 2nd commit with something like "maintainers: ".

Copy link
Member

@pbogdan pbogdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, confirmed "Sign in with Google" works on my end.

Would it be feasible at all to have this included in some form on 19.09 as well? "Sign in with Google" would I believe require bumping zoom to a newer version too though...

@danbst
Copy link
Contributor Author

danbst commented Dec 19, 2019

@pbogdan yeah, I'll backport it, perhaps together with Zoom update

Copy link
Contributor

@worldofpeace worldofpeace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is a bit confusing to me, I'm rather familiar with the wrapping setup hooks as well.

ln -s $out/share/zoom-us/zoom $out/bin/zoom-us

# Do the manual Qt wrapping, because existing hook doesn't support our usecase
qtWrapperArgs+=(--prefix XDG_DATA_DIRS : "$out/share/zoom-us")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can use use the nix attr below for this, or does it not work? (I believe you can use placeholder)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After inspecting the produced wrappers they're missing an entry to XDG_DATA_DIRS for $out/share which needs to be in these wrappers too. I see code in wrapQtAppsHook for that, so this confuses me.

Can you also add a comment why we need the zoom-us subdir in XDG_DATA_DIRS?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also believe you're wrapping in the wrong phase, can this be done in preFixup?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@worldofpeace

I also believe you're wrapping in the wrong phase, can this be done in preFixup?

changed to postFixup, as I see there are some hooks added in preFixup in wrap-qt-setup-hook.sh. I don't know what will be the run order, but postFixup will definitely run after.

@danbst
Copy link
Contributor Author

danbst commented Dec 19, 2019

@worldofpeace thanks a lot for review, didn't know about placeholder (wanted it to exist!).

There was a little problem with passing --run "cd blabla" into qt wrapper. It splits it into 3 args --run, "cd and blabla" which isn't what I wanted. I was not able to solve it in wrap-qt-apps-hook.sh.

And the other problem comes from fact that zoom binaries live in directory, which isn't included into qt wrapper targetDirs. Some "custom dirs" qt wrapper arg missing? Dunno

@@ -105,7 +105,7 @@ let
to run all update scripts for all packages that lists \`garbas\` as a maintainer
and have \`updateScript\` defined, or:

% nix-shell maintainers/scripts/update.nix --argstr package garbas
% nix-shell maintainers/scripts/update.nix --argstr package gnome3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually think several things aren't correct here. This should be like maintainer $maintainer_attr, and to run for a specific package below should be package. This is out of scope and has various other inaccuracy, can you drop the commit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, it is real typo. Your suggested variant is already listed https://github.com/NixOS/nixpkgs/blob/master/maintainers/scripts/update.nix#L103-L111

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but I found that my suggestion was bad as well. I've changed the suggestion and verified it runs

@worldofpeace
Copy link
Contributor

#75903 (comment) is reason enough for me to believe you should do this. Though this is the constant drawback with unfree software 🤣, you're never going to know what exactly it's doing easily.

Copy link
Contributor

@worldofpeace worldofpeace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks about correct 👍

@danbst danbst merged commit 63fd250 into NixOS:master Dec 22, 2019
@danbst danbst deleted the zoom-fix branch December 22, 2019 19:16
@danbst
Copy link
Contributor Author

danbst commented Dec 22, 2019

cherried to 33bacd3

Also, updated Zoom to latest in release-19.09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

zoom-us: "Sign in with google" causes browser to open, without any link
4 participants