NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.84k stars 13.92k forks source link

unityhub: Unity Hub logging out after fully closing every time #348032

Open spudnut2000 opened 5 days ago

spudnut2000 commented 5 days ago

Describe the bug

When fully exiting Unity Hub from the unityhub package, it logs out and you must sign in again when reopening it.

Steps To Reproduce

Steps to reproduce the behavior:

  1. add the unityhub pkg
  2. sign in to the hub
  3. completely close the hub (closing the window keeps a background process running, if you have a toolbar you can right click and "Quit" from there)
  4. Open unityhub to see the login screen again

Expected behavior

Account stays signed in after closing the Unity hub.

Notify maintainers

@tesq0 @huantianad

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.54, NixOS, 24.05 (Uakari), 24.05.5596.d51c28603def`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.8`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a :+1: reaction to issues you find important.

huantianad commented 5 days ago

Do you have some sort of secret store installed, like gnome keyring or kwallet

spudnut2000 commented 5 days ago

No, I am just using i3wm.

huantianad commented 5 days ago

I think UnityHub requires something that does support the Secret Service API to store credentials. I feel like there should be an alternative somehow, since other electron apps are able to store these secrets without it, but I'm not sure if this is something we can even fix on our end with UnityHub. It might be worth reporting this upstream or doing some more investigation if it does need some secret store, but for now I think the easy solution is to install something that supports the org.freedesktop.secrets DBus API, which I'm not sure there is other than KDE Wallet and GNOME Keyring.

Edit: it seems there are some alternatives too.

spudnut2000 commented 5 days ago

Gotcha, I'll take a look at those and grab one to see if it fixes my issue. Thank you!

huantianad commented 5 days ago

Also fyi I'm pretty sure the kde and gnome ones should work even outside of their respective DEs