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

Strange behaviour with GTK_USE_PORTAL=1, affects firefox, evince and gnome-desktop #156950

Closed
astrojhgu opened this issue Jan 27, 2022 · 6 comments
Labels
0.kind: bug Something is broken

Comments

@astrojhgu
Copy link

Describe the bug

A clear and concise description of what the bug is.
When xdg.portal.gtkUsePortal=true is set, following abnormal behaviors happen:

  1. gnome desktop login time period becomes much longer (~30s on my x1 yoga)
  2. In gnome environment, Firefox failed to launch a file chooser when I press ctrl+O and complains
no such interface “org.freedesktop.portal.filechooser” on object at path /org/freedesktop/portal/desktop
  1. Similar behavior happens in evince (still in gnome environment).

As to the plasma desktop, all are OK.
For gnome (wayland), it still takes a long period of time (~30s) between I enter the password and the gnome desktop is fully ready, but the filechooser can launch normally after that.

If I remove the gtkUsePortal setting, everything becomes OK.

Steps To Reproduce

Steps to reproduce the behavior:

  1. in configuration.nix, add xdg.portal.gtkUsePortal=true;
  2. sudo nixos-rebuild boot
  3. reboot
  4. login to gnome-xorg.

Expected behavior

A clear and concise description of what you expected to happen.

  1. gnome desktop should be launch in a short period time (say 5~10 s)
  2. the file chooser should be launched normally.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Notify maintainers

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 5.10.93, NixOS, 22.05 (Quokka)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.5.1`
 - channels(root): `"nixos-22.05pre348581.c07b471b52b"`
 - channels(astrojhgu): `"android, nixos-21.11pre329341.9e70e9f732f"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@astrojhgu astrojhgu added the 0.kind: bug Something is broken label Jan 27, 2022
@jansol
Copy link
Contributor

jansol commented Jan 28, 2022

This sounds like #156830 all over again

@Algram
Copy link
Member

Algram commented Jan 29, 2022

Also affects gnome.gnome-boxes

@avitex
Copy link
Member

avitex commented Mar 30, 2022

Duplicate of #135898?

@itslychee
Copy link
Contributor

I'm getting this with sway too

@SuperSamus
Copy link
Contributor

I think that this can now be closed, since xdg.portal.gtkUsePortal has been removed.

@jtojnar
Copy link
Member

jtojnar commented Jul 8, 2022

Closing as duplicate of #135898

@jtojnar jtojnar closed this as completed Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

7 participants