Skip to content

Commit 8954d41

Browse files
committed
integration: describe how to fall back on non-xdg-portal file chooser
Related to: labwc/labwc#2300
1 parent 9154384 commit 8954d41

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/integration.md

+18
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
9. [Qt](#qt)
1717
10. [Clipboard](#clipboard)
1818
11. [Input Method](#input-method)
19+
12. [GTK](#gtk)
1920

2021
# 1. Introduction {#introduction}
2122

@@ -440,6 +441,23 @@ So if you want to use IME with Chromium under labwc, you have following options:
440441
or by applying its patch. Then, you can enable IME with [text-input-v1] by
441442
running Chromium with `--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime`.
442443

444+
# 12. GTK {#gtk}
445+
446+
In some recent GTK (>=4.16) applications the File Chooser defaults to using
447+
xdg-portal technology which may not work depending on your system setup. There
448+
are at least two ways to fallback to a 'normal' File Chooser:
449+
450+
1. Set the environment variable `GDK_DEBUG=no-portals` (in for example
451+
`$HOME/.config/labwc/environment`)
452+
2. Create a portal configuration file in the current user home based on
453+
[labwc-portals.conf] and add the line `org.freedesktop.impl.portal.FileChooser=none`
454+
to it. The location of this file should typically be
455+
`$HOME/.config/xdg-desktop-portal/` but please see [portal-user-home] for
456+
further details.
457+
458+
[labwc-portals.conf]: https://github.com/labwc/labwc/blob/master/data/labwc-portals.conf
459+
[portal-user-home]: https://flatpak.github.io/xdg-desktop-portal/docs/portals.conf.html
460+
443461
[text-input-v3]: https://wayland.app/protocols/text-input-unstable-v3
444462
[input-method-v2]: https://wayland.app/protocols/input-method-unstable-v2
445463
[Configtool (Fcitx 5) - Fcitx]: https://fcitx-im.org/wiki/Configtool_(Fcitx_5)

0 commit comments

Comments
 (0)