flatpak / xdg-desktop-portal-gtk

Gtk implementation of xdg-desktop-portal
GNU Lesser General Public License v2.1
130 stars 102 forks source link

No save button or location bar in save file dialog #484

Closed RaviRahar closed 3 months ago

RaviRahar commented 4 months ago

I don't quite know what the problem is yet. But I do not get a save button or location bar. I am unable to save files. Open button does not appear neither. I am on hyprland arch linux (hence wayland) and tried both xdg-desktop-portal-gtk (version 1.15.1-2 built on 22nd April) and xdg-desktop-portal-gtk-git. xdg-desktop-portal-lxqt is working correctly.

$ cat ~/.config/xdg-desktop-portal/portals.conf
[preferred]
default=hyprland;gtk
org.freedesktop.impl.portal.FileChooser=gtk
$ journalctl --user -u xdg-desktop-portal-gtk --no-pager | tail -n 9

Jul 14 07:45:57 shush systemd[761]: Starting Portal service (GTK/GNOME implementation)...
Jul 14 07:45:58 shush systemd[761]: Started Portal service (GTK/GNOME implementation).
Jul 14 11:06:09 xdg-desktop-por[1133]: Error reading events from display: Broken pipe
Jul 14 11:06:09 systemd[761]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
-- Boot 29c6e7b03f4e44f7a0f4bc949b347c47 --
Jul 14 11:35:14 systemd[790]: Starting Portal service (GTK/GNOME implementation)...
Jul 14 11:35:14 systemd[790]: Started Portal service (GTK/GNOME implementation).
Jul 14 11:35:22 xdg-desktop-por[1052]: Unhandled parent window type 
Jul 14 11:35:22 xdg-desktop-por[1052]: Failed to associate portal window with parent window

screenshot-2024-07-13_21-46-33 screenshot-2024-07-14_11-49-15

RaviRahar commented 3 months ago

The problem was gtk applications hide header bars when in fullscreen mode. And I was forcing all apps to be fullscreen.

# If you know hyprland, I was using fake fullscreen. Now I added these applications to exception:

windowrulev2 = fakefullscreen, class:^(?!gimp|xdg-desktop-portal.*)(.*)$