[Bug 1215641] New: XDG Portal File Picker not working on latest snapshot
https://bugzilla.suse.com/show_bug.cgi?id=1215641 Bug ID: 1215641 Summary: XDG Portal File Picker not working on latest snapshot Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Usability Assignee: screening-team-bugs@suse.de Reporter: socvirnyl.estela@gmail.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- Snapshot 20230921 has a bug where a user cannot open a filechooser/filepicker. A snippet of the log through `journalctl -f` is shown below: ``` Sep 24 12:29:37 sentient-slate firefox-bin[3253]: Server is missing xdg_foreign support Sep 24 12:29:37 sentient-slate firefox-bin[3253]: Failed to export handle, could not set transient for Sep 24 12:29:37 sentient-slate firefox-bin[3253]: Can't open portal file chooser: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.FileChooser” on object at path /org/freedesktop/portal/desktop ``` I have to rollback for now to a previous snapshot. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 https://bugzilla.suse.com/show_bug.cgi?id=1215641#c1 Soc Virnyl Estela <socvirnyl.estela@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Usability |Other --- Comment #1 from Soc Virnyl Estela <socvirnyl.estela@gmail.com> --- (In reply to Soc Virnyl Estela from comment #0)
Snapshot 20230921 has a bug where a user cannot open a filechooser/filepicker. A snippet of the log through `journalctl -f` is shown below:
``` Sep 24 12:29:37 sentient-slate firefox-bin[3253]: Server is missing xdg_foreign support Sep 24 12:29:37 sentient-slate firefox-bin[3253]: Failed to export handle, could not set transient for Sep 24 12:29:37 sentient-slate firefox-bin[3253]: Can't open portal file chooser: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.FileChooser” on object at path /org/freedesktop/portal/desktop ```
I have to rollback for now to a previous snapshot.
I also get a PermissionDenied error to `/run/user/1000/doc` when restartig `/usr/libexec/xdg-desktop-portal -r` I will provide logs later. Need to get back to a previous snapshot for now -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 https://bugzilla.suse.com/show_bug.cgi?id=1215641#c2 --- Comment #2 from Soc Virnyl Estela <socvirnyl.estela@gmail.com> --- (In reply to Soc Virnyl Estela from comment #1)
(In reply to Soc Virnyl Estela from comment #0)
Snapshot 20230921 has a bug where a user cannot open a filechooser/filepicker. A snippet of the log through `journalctl -f` is shown below:
``` Sep 24 12:29:37 sentient-slate firefox-bin[3253]: Server is missing xdg_foreign support Sep 24 12:29:37 sentient-slate firefox-bin[3253]: Failed to export handle, could not set transient for Sep 24 12:29:37 sentient-slate firefox-bin[3253]: Can't open portal file chooser: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.FileChooser” on object at path /org/freedesktop/portal/desktop ```
I have to rollback for now to a previous snapshot.
I also get a PermissionDenied error to `/run/user/1000/doc` when restartig `/usr/libexec/xdg-desktop-portal -r`
I will provide logs later. Need to get back to a previous snapshot for now
I am not sure why I am getting this error when trying to open a file picker ``` systemctl --user status xdg-document-portal.service × xdg-document-portal.service - flatpak document portal service Loaded: loaded (/usr/lib/systemd/user/xdg-document-portal.service; static) Active: failed (Result: exit-code) since Mon 2023-09-25 06:09:53 PST; 1s ago Duration: 3ms Process: 21984 ExecStart=/usr/libexec/xdg-document-portal (code=exited, status=6) Main PID: 21984 (code=exited, status=6) CPU: 9ms Sep 25 06:09:53 sentient-slate systemd[9078]: Starting flatpak document portal service... Sep 25 06:09:53 sentient-slate systemd[9078]: Started flatpak document portal service. Sep 25 06:09:53 sentient-slate xdg-document-portal[21992]: fusermount3: failed to access mountpoint /run/user/1000/doc: Permission denied Sep 25 06:09:53 sentient-slate xdg-document-portal[21984]: error: fuse init failed: Can't mount path /run/user/1000/doc Sep 25 06:09:53 sentient-slate systemd[9078]: xdg-document-portal.service: Main process exited, code=exited, status=6/NOTCONFIGURED Sep 25 06:09:53 sentient-slate systemd[9078]: xdg-document-portal.service: Failed with result 'exit-code'. ``` -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 https://bugzilla.suse.com/show_bug.cgi?id=1215641#c3 --- Comment #3 from Soc Virnyl Estela <socvirnyl.estela@gmail.com> --- So it's XDG Desktop Portal. Old version 0.16.0 still uses libfuse2 (unmaintained) Latest version 0.18.0 now uses libfuse3. So I guess it has something to do with the permission denied error? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 https://bugzilla.suse.com/show_bug.cgi?id=1215641#c4 --- Comment #4 from Soc Virnyl Estela <socvirnyl.estela@gmail.com> --- (In reply to Soc Virnyl Estela from comment #3)
So it's XDG Desktop Portal.
Old version 0.16.0 still uses libfuse2 (unmaintained)
Latest version 0.18.0 now uses libfuse3. So I guess it has something to do with the permission denied error?
I might be wrong but I am going to look into this. Seems I was - https://github.com/flatpak/xdg-desktop-portal/pull/634 So I wonder what causes those permission denied errors -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 https://bugzilla.suse.com/show_bug.cgi?id=1215641#c5 --- Comment #5 from Soc Virnyl Estela <socvirnyl.estela@gmail.com> --- Found a solution. It seems 0.18.0 requires manual configuration and expects desktop environments to have their own portals.conf as explained in https://github.com/flatpak/xdg-desktop-portal/issues/1077#issuecomment-16880... The workaround is to add a custom config like https://github.com/flatpak/xdg-desktop-portal/issues/1077#issuecomment-17158... I use river and tested that. It worked. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 https://bugzilla.suse.com/show_bug.cgi?id=1215641#c6 --- Comment #6 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1215641) was mentioned in https://build.opensuse.org/request/show/1113341 Factory / river -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 https://bugzilla.suse.com/show_bug.cgi?id=1215641#c7 Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #7 from Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl> --- With the new configuration requirements, desktop environments and packagers are expected to have in their best guesses, also add a portals.conf corresponding to that environment. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 https://bugzilla.suse.com/show_bug.cgi?id=1215641#c8 Maurizio Galli <maurizio.galli@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |maurizio.galli@suse.com --- Comment #8 from Maurizio Galli <maurizio.galli@suse.com> --- I have prepared a patched package [0] for Xfce with the drop-in file however it does not seem to work. [0]https://build.opensuse.org/package/show/home:mauriziogalli:branches:X11:xfce... flatpak applications still get errors such as `Args: No such interface “org.freedesktop.portal.FileChooser”` -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 https://bugzilla.suse.com/show_bug.cgi?id=1215641#c9 Maurizio Galli <maurizio.galli@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WONTFIX |--- --- Comment #9 from Maurizio Galli <maurizio.galli@suse.com> --- I'm reopening this just so that can keep the tracker around till it's properly resolved -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 Maurizio Galli <maurizio.galli@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dimstar@opensuse.org Flags| |needinfo?(dimstar@opensuse. | |org) -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 https://bugzilla.suse.com/show_bug.cgi?id=1215641#c10 --- Comment #10 from Maurizio Galli <maurizio.galli@suse.com> --- running this command at startup fixes the issue on Xfce: systemctl --user import-environment XDG_CURRENT_DESKTOP && dbus-update-activation-environment --systemd XDG_CURRENT_DESKTOP && systemctl --user restart xdg-desktop-portal.service xdg-desktop-portal-gtk.service -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 https://bugzilla.suse.com/show_bug.cgi?id=1215641#c11 Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo? --- Comment #11 from Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl> --- It's right to keep this open. So I will update this. Are there any desktop environments affected by this? Checklist of resolved DEs/WMs: - [X] RiverWM - [X] SwayWM - [X] Hyprland - [ ] GNOME - [ ] XFCE - [ ] KDE Plasma Please add more that you might find. XDP 0.18.x requires DEs/WMs to provide their own portals.conf. Thanks! -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|XDG Portal File Picker not |XDG Portal 0.18.0 requires |working on latest snapshot |DEs/WMs to have Portals | |Configuration -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 https://bugzilla.suse.com/show_bug.cgi?id=1215641#c12 --- Comment #12 from Maurizio Galli <maurizio.galli@suse.com> --- (In reply to Soc Virnyl Estela from comment #11)
It's right to keep this open. So I will update this. Are there any desktop environments affected by this?
Xfce is still affected, I have created the drop-in conf file but there is more that is needed to make it work as described in comment #10. I'm looking for a cleaner fix/workaround than having a bash script executing that command. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 Maurizio Galli <maurizio.galli@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bjorn.lie@gmail.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 Maurizio Galli <maurizio.galli@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fabian@ritter-vogt.de -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 https://bugzilla.suse.com/show_bug.cgi?id=1215641#c13 --- Comment #13 from Fabian Vogt <fabian@ritter-vogt.de> --- (In reply to Soc Virnyl Estela from comment #11)
It's right to keep this open. So I will update this. Are there any desktop environments affected by this?
Checklist of resolved DEs/WMs: - [X] RiverWM - [X] SwayWM - [X] Hyprland - [ ] GNOME - [ ] XFCE - [ ] KDE Plasma
Please add more that you might find. XDP 0.18.x requires DEs/WMs to provide their own portals.conf.
Thanks!
Plasma ships /usr/share/xdg-desktop-portal/kde-portals.conf since 5.27.8. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1215641 https://bugzilla.suse.com/show_bug.cgi?id=1215641#c19 --- Comment #19 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1215641) was mentioned in https://build.opensuse.org/request/show/1198239 Backports:SLE-15-SP6 / libgarcon+libxfce4ui+libxfce4util+mousepad+ristretto+xfburn+xfce4-clipman-plugin+xfce4-kbdleds-plugin+xfce4-notifyd+xfce4-panel+xfce4-power-manager+xfce4-session+xfce4-settings+xfce4-taskmanager+xfce4-terminal -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com