Skip to content

Commit 059ae9a

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

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/integration.md

Lines changed: 12 additions & 0 deletions
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,17 @@ 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 for their FileChooser which may not work depending on
448+
your system setup. There are at least two ways to fallback to a 'normal' File
449+
Chooser:
450+
451+
1. Set the environment variable `GDK_DEBUG=no-portals`
452+
2. Create a `/usr/share/xdg-desktop-portal/labwc-portals.conf` with the line `org.freedesktop.impl.portal.FileChooser=none`
453+
454+
443455
[text-input-v3]: https://wayland.app/protocols/text-input-unstable-v3
444456
[input-method-v2]: https://wayland.app/protocols/input-method-unstable-v2
445457
[Configtool (Fcitx 5) - Fcitx]: https://fcitx-im.org/wiki/Configtool_(Fcitx_5)

0 commit comments

Comments
 (0)