Skip to content

integration: describe how to fall back on non-xdg-portal file chooser #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
9. [Qt](#qt)
10. [Clipboard](#clipboard)
11. [Input Method](#input-method)
12. [GTK](#gtk)

# 1. Introduction {#introduction}

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

# 12. GTK {#gtk}

In some recent GTK (>=4.16) applications the File Chooser defaults to using
xdg-portal technology which may not work depending on your system setup. There
are at least two ways to fallback to a 'normal' File Chooser:

1. Set the environment variable `GDK_DEBUG=no-portals` (in for example
`$HOME/.config/labwc/environment`)
2. Create a portal configuration file in the current user home based on
[labwc-portals.conf] and add the line `org.freedesktop.impl.portal.FileChooser=none`
to it. The location of this file should typically be
`$HOME/.config/xdg-desktop-portal/` but please see [portal-user-home] for
further details.

[labwc-portals.conf]: https://github.com/labwc/labwc/blob/master/data/labwc-portals.conf
[portal-user-home]: https://flatpak.github.io/xdg-desktop-portal/docs/portals.conf.html

[text-input-v3]: https://wayland.app/protocols/text-input-unstable-v3
[input-method-v2]: https://wayland.app/protocols/input-method-unstable-v2
[Configtool (Fcitx 5) - Fcitx]: https://fcitx-im.org/wiki/Configtool_(Fcitx_5)
Expand Down