Open gesperon opened 10 months ago
are you using ozone wayland?
@eclairevoyant
Do you mean the steps in https://nixos.wiki/wiki/Chromium ? under "Enabling native Wayland support" ? if so yes. I have trying both the environment variable and passing the arguments to chromium to no avail.
I would suggest trying without ozone wayland, as it's known to have some issues.
Good to know. I have it disabled, so with or without it does not make a difference at least for the file dialogs.
I had the same problem with element-desktop
and other apps, also with Gnome installed but not used.
https://nixos.wiki/wiki/Sway#Using_NixOS suggests some workarounds for gtk applications. In my case, setting wrapperFeatures.gtk = true
seems to be enough.
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
wrapperFeatures.gtk = true;
does not fix the issue for me. Do you have xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ] ;
?
I used your overlays
workaround to solve this issue for myself. Thank you for putting it forward!
I can confirm that having wrapperFeatures.gtk = true
and extraPortals = [ pkgs.xdg-desktop-portal-gtk ]
does not resolve this by default.
Describe the bug
Chromium does not show file dialogs under sway.
/run/current-system/sw/share/xdg-desktop-portal/portals/gtk.portal
has:Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
For a file dialog to show up.
Additional context
I temporally fixed this behavior on my local PC forcing
UseIn=gnome;sway
:but this is really ugly and dirty.
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.EDIT: running: Chromium Version 118.0.5993.70 (Official Build) (64-bit) from
/nix/store/ykq2may73q4gvw6rdbrsngdnw98cwpbg-chromium-118.0.5993.70/bin/chromium
(in case someone needs to compare hash).