You are not logged in.
Since updating google-chrome and chromium to 123.0.6312, the open and save file dialogs are not showing. No visible errors or blocking or anything - if I click "Save as" on a file, nothing happens. The dialogs work fine in other browsers and GTK applications. I have xdg-desktop-portal and xdg-desktop-portal-{gnome, gtk} installed. I'm running i3 without a DE. Has anyone else experienced this or have any ideas? My research suggests this is usually caused by missing xdg-desktop-portal but that is not the case for me.
When I try to save a file, the Chrome debug log says:
[145164:145196:0326/161840.429311:VERBOSE1:bus.cc(916)] Method call: message_type: MESSAGE_METHOD_CALL
interface: org.freedesktop.DBus
member: GetNameOwner
signature: s
string "org.freedesktop.portal.Desktop"
[145164:145196:0326/161840.522535:VERBOSE1:object_proxy.cc(513)] Signal received: message_type: MESSAGE_SIGNAL
destination: :1.8953
path: /org/freedesktop/portal/desktop/request/1_8953/handle_2
interface: org.freedesktop.portal.Request
member: Response
sender: :1.12
signature: ua{sv}
serial: 220
uint32_t 2
array [
dict entry {
string "uris"
variant array [
]
}
]
Thanks in advance.
Last edited by nasci (2024-04-02 02:36:59)
Offline
First of all, let's test whether the XDG portal is connected to DBUS properly
qdbus org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read org.freedesktop.appearance color-scheme
Where qdbus came from qt5-tools package.
Offline
That particular command fails with
Cannot find 'org.freedesktop.portal.Settings.Read' in object /org/freedesktop/portal/desktop at org.freedesktop.portal.Desktop
But I can execute other read commands like
$ qdbus org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Camera.IsCameraPresent
false
Offline
I'm not using i3wm, but I remember somebody reported that by changing "/usr/share/xdg-desktop-portal/portals/gtk.portal" file from:
UseIn=gnome
...to:
UseIn=gnome;i3
Solves XDG portal related problems. Have you done this before?
Edit: don't forget to restart the system after applied that change
Last edited by Thor-x86 (2024-03-31 09:12:57)
Offline
I wasn't aware of that, but unfortunately it didn't fix the problem.
Offline
If you're only using i3, remove xdg-desktop-portal-gnome
If the problem remains, please post your complete system journal for the boot:
sudo journalctl -b | curl -F 'file=@-' 0x0.st
Offline
xdg-portal-gnome was a dependency of lutris. I've removed it anyway.
I found xdg-desktop-portal logs the following when attempting to open a save file dialog:
Apr 01 20:35:57 ruslan xdg-desktop-por[1110]: Backend call failed: Could not activate remote peer: startup job failed
suggesting the link between xdg-desktop-portal and xdg-desktop-portal-gtk is not there. Indeed, in systemctl status --user xdg-desktop-portal-gtk:
Apr 01 21:33:23 ruslan xdg-desktop-por[1149]: cannot open display:
Apr 01 21:33:23 ruslan systemd[879]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
I fixed this by running `systemctl --user import-environment DISPLAY XAUTHORITY` and then `systemctl --user restart xdg-desktop-portal-gtk`. It seems if you're not using a DE this needs to be run manually to set the environment variables for startup of xdg-desktop-portal-gtk. There is a script included with systemd to automate this in /etc/X11/xinit/xinitrc.d/50-systemd-user.sh (as well as running dbus-update-activation-environment, although that doesn't seem to fix this problem on its own). You can put
source /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
in ~/.xinitrc to run this at login.
I have no idea why this hasn't been a problem before, since I've been using i3 for about 7 years without a DE and it's only just become a problem. It's also documented here - https://github.com/flatpak/xdg-desktop- … /issues/72. Perhaps this should be included in the i3 wiki page?
Offline
This isn't i3 spcific, see the last link below…
It became a problem since you probably for the first time relied on something dbus.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline