Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1
@ 2023-09-28 21:09 Aicaya
  2023-09-29  3:21 ` MajesticFaucet
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Aicaya @ 2023-09-28 21:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1269 bytes --]

New issue by Aicaya on void-packages repository

https://github.com/void-linux/void-packages/issues/46317

Description:
### Is this a new report?

Yes

### System Info

Void 5.15.131_1 x86_64 AuthenticAMD notuptodate rrmDFFFFFFFFFFFF

### Package(s) Affected

xdg-desktop-portal-1.18.0_1

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

None that I could find.

### Expected behaviour

The file chooser should open when needed.

### Actual behaviour

It works correctly with GTK2, GTK4 and Qt apps, but on GTK3 apps it gives a `Can't open portal file chooser` error.  Forgot to copy the exact message, but the last bit says `No such interface “org.freedesktop.portal.FileChooser” on object at path /org/freedesktop/portal/desktop/`.

Downgrading back to version `1.16.0_2` fixes the issue (hence the `notuptodate` bit of the `xuname` output).

### Steps to reproduce

Test 1:
1. Open a program that uses GTK3 dialogs via the terminal (e.g. Firefox).
2. `Ctrl+O` to open up the file dialog (or go to "File > Open file" on the menu bar).
3. Doesn't open, error shows on terminal.

Test 2 (with zenity):
1. Run `zenity --file-selection` on the terminal.
2. File chooser doesn't pop up, error shows on terminal.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1
  2023-09-28 21:09 [ISSUE] GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1 Aicaya
@ 2023-09-29  3:21 ` MajesticFaucet
  2023-09-29  3:23 ` MajesticFaucet
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: MajesticFaucet @ 2023-09-29  3:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 343 bytes --]

New comment by MajesticFaucet on void-packages repository

https://github.com/void-linux/void-packages/issues/46317#issuecomment-1740256584

Comment:
same issue on `Void 6.1.54 x86_64 AuthenticAMD uptodate rFF`
using `sway` with `xdg-desktop-portal-gtk` and `Thunar` file manager.

file chooser broke after the `xdg-desktop-portal` update.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1
  2023-09-28 21:09 [ISSUE] GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1 Aicaya
  2023-09-29  3:21 ` MajesticFaucet
@ 2023-09-29  3:23 ` MajesticFaucet
  2023-09-29  3:25 ` MajesticFaucet
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: MajesticFaucet @ 2023-09-29  3:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 625 bytes --]

New comment by MajesticFaucet on void-packages repository

https://github.com/void-linux/void-packages/issues/46317#issuecomment-1740256584

Comment:
same issue on `Void 6.1.54 x86_64 AuthenticAMD uptodate rFF`
using `sway` with `xdg-desktop-portal-gtk` and `Thunar` file manager.

file chooser broke after the `xdg-desktop-portal` update.

Exact message with firefox flatpak is
`(firefox:2): Gtk-WARNING **: 22:50:56.547: 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`

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1
  2023-09-28 21:09 [ISSUE] GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1 Aicaya
  2023-09-29  3:21 ` MajesticFaucet
  2023-09-29  3:23 ` MajesticFaucet
@ 2023-09-29  3:25 ` MajesticFaucet
  2023-09-29  5:18 ` RunningDroid
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: MajesticFaucet @ 2023-09-29  3:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 652 bytes --]

New comment by MajesticFaucet on void-packages repository

https://github.com/void-linux/void-packages/issues/46317#issuecomment-1740256584

Comment:
same issue on `Void 6.1.54 x86_64 AuthenticAMD uptodate rFF`
using `sway` with `xdg-desktop-portal-wlr`, `xdg-desktop-portal-gtk`, and `Thunar` file manager.

file chooser broke after the `xdg-desktop-portal` update.

Exact message with firefox flatpak is
`(firefox:2): Gtk-WARNING **: 22:50:56.547: 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`

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1
  2023-09-28 21:09 [ISSUE] GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1 Aicaya
                   ` (2 preceding siblings ...)
  2023-09-29  3:25 ` MajesticFaucet
@ 2023-09-29  5:18 ` RunningDroid
  2023-09-29  5:39 ` MajesticFaucet
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: RunningDroid @ 2023-09-29  5:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1507 bytes --]

New comment by RunningDroid on void-packages repository

https://github.com/void-linux/void-packages/issues/46317#issuecomment-1740327986

Comment:
This appears to be a result of `xdg-desktop-portal` requiring configuration as of 1.17.0 (even though they don't explicitly say it in the changelog*).
The intended behavior seems to be that desktop or distro devs will ship a `/usr/share/xdg-desktop-portal/${DESKTOP}-portals.conf` to set the default portals for a desktop or `xdg-desktop-portal` will just fail without a fallback if nothing's configured: https://github.com/flatpak/xdg-desktop-portal/issues/1077

In that issue ibotty provided a snippet that restores the previous behavior when installed to `.config/xdg-desktop-portal/sway-portals.conf`:
```
[preferred]
# use xdg-desktop-portal-gtk for every portal interface
default=gtk
# except for the xdg-desktop-portal-wlr supplied interfaces
org.freedesktop.impl.portal.Screencast=wlr
org.freedesktop.impl.portal.Screenshot=wlr
```
and the documentation for the portal configuration is here: https://github.com/flatpak/xdg-desktop-portal/blob/main/doc/portals-conf.rst

*: https://raw.githubusercontent.com/flatpak/xdg-desktop-portal/main/NEWS :
```
- Rework how portal implementations are loaded. This new, more robust system
  allows selecting specific backends for specific portals, and layering them
  when necessary. Platforms that provide portals implementation are encouraged
  to provide a suitable configuration file.
```

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1
  2023-09-28 21:09 [ISSUE] GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1 Aicaya
                   ` (3 preceding siblings ...)
  2023-09-29  5:18 ` RunningDroid
@ 2023-09-29  5:39 ` MajesticFaucet
  2023-10-02  7:22 ` mayhair
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: MajesticFaucet @ 2023-09-29  5:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 469 bytes --]

New comment by MajesticFaucet on void-packages repository

https://github.com/void-linux/void-packages/issues/46317#issuecomment-1740341215

Comment:
> ```
> [preferred]
> # use xdg-desktop-portal-gtk for every portal interface
> default=gtk
> # except for the xdg-desktop-portal-wlr supplied interfaces
> org.freedesktop.impl.portal.Screencast=wlr
> org.freedesktop.impl.portal.Screenshot=wlr
> ```

Thanks, file chooser works after making the config change.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1
  2023-09-28 21:09 [ISSUE] GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1 Aicaya
                   ` (4 preceding siblings ...)
  2023-09-29  5:39 ` MajesticFaucet
@ 2023-10-02  7:22 ` mayhair
  2023-10-02  9:38 ` paper42
  2023-10-05 16:52 ` [ISSUE] [CLOSED] " classabbyamp
  7 siblings, 0 replies; 9+ messages in thread
From: mayhair @ 2023-10-02  7:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 757 bytes --]

New comment by mayhair on void-packages repository

https://github.com/void-linux/void-packages/issues/46317#issuecomment-1742516097

Comment:
> In that issue ibotty provided a snippet that restores the previous behavior when installed to `.config/xdg-desktop-portal/sway-portals.conf`:
> 
> ```
> [preferred]
> # use xdg-desktop-portal-gtk for every portal interface
> default=gtk
> # except for the xdg-desktop-portal-wlr supplied interfaces
> org.freedesktop.impl.portal.Screencast=wlr
> org.freedesktop.impl.portal.Screenshot=wlr
> ```

I put this text in /usr/share/xdg-desktop-portal/gnome-portals.conf (since I am using GNOME), and it helped solve a related issue where Flatpak applications would not use my system theme and button order.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1
  2023-09-28 21:09 [ISSUE] GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1 Aicaya
                   ` (5 preceding siblings ...)
  2023-10-02  7:22 ` mayhair
@ 2023-10-02  9:38 ` paper42
  2023-10-05 16:52 ` [ISSUE] [CLOSED] " classabbyamp
  7 siblings, 0 replies; 9+ messages in thread
From: paper42 @ 2023-10-02  9:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1021 bytes --]

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/issues/46317#issuecomment-1742701541

Comment:
> > In that issue ibotty provided a snippet that restores the previous behavior when installed to `.config/xdg-desktop-portal/sway-portals.conf`:
> > ```
> > [preferred]
> > # use xdg-desktop-portal-gtk for every portal interface
> > default=gtk
> > # except for the xdg-desktop-portal-wlr supplied interfaces
> > org.freedesktop.impl.portal.Screencast=wlr
> > org.freedesktop.impl.portal.Screenshot=wlr
> > ```
> 
> I put this text in /usr/share/xdg-desktop-portal/gnome-portals.conf (since I am using GNOME), and it helped solve a related issue where Flatpak applications would not use my system theme and button order.

wlr and xdg-desktop-portal-wlr is correct only for wlroots based compositors which gnome is not. As far as I know, the last 3 lines should only be necessary on wlroots compositors and it should work ootb without any special config with GNOME.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ISSUE] [CLOSED] GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1
  2023-09-28 21:09 [ISSUE] GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1 Aicaya
                   ` (6 preceding siblings ...)
  2023-10-02  9:38 ` paper42
@ 2023-10-05 16:52 ` classabbyamp
  7 siblings, 0 replies; 9+ messages in thread
From: classabbyamp @ 2023-10-05 16:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1272 bytes --]

Closed issue by Aicaya on void-packages repository

https://github.com/void-linux/void-packages/issues/46317

Description:
### Is this a new report?

Yes

### System Info

Void 5.15.131_1 x86_64 AuthenticAMD notuptodate rrmDFFFFFFFFFFFF

### Package(s) Affected

xdg-desktop-portal-1.18.0_1

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

None that I could find.

### Expected behaviour

The file chooser should open when needed.

### Actual behaviour

It works correctly with GTK2, GTK4 and Qt apps, but on GTK3 apps it gives a `Can't open portal file chooser` error.  Forgot to copy the exact message, but the last bit says `No such interface “org.freedesktop.portal.FileChooser” on object at path /org/freedesktop/portal/desktop/`.

Downgrading back to version `1.16.0_2` fixes the issue (hence the `notuptodate` bit of the `xuname` output).

### Steps to reproduce

Test 1:
1. Open a program that uses GTK3 dialogs via the terminal (e.g. Firefox).
2. `Ctrl+O` to open up the file dialog (or go to "File > Open file" on the menu bar).
3. Doesn't open, error shows on terminal.

Test 2 (with zenity):
1. Run `zenity --file-selection` on the terminal.
2. File chooser doesn't pop up, error shows on terminal.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-10-05 16:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-28 21:09 [ISSUE] GTK3 file chooser doesn't work after upgrading xdg-desktop-portal to 1.18.0_1 Aicaya
2023-09-29  3:21 ` MajesticFaucet
2023-09-29  3:23 ` MajesticFaucet
2023-09-29  3:25 ` MajesticFaucet
2023-09-29  5:18 ` RunningDroid
2023-09-29  5:39 ` MajesticFaucet
2023-10-02  7:22 ` mayhair
2023-10-02  9:38 ` paper42
2023-10-05 16:52 ` [ISSUE] [CLOSED] " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).