| 1 |
Convenience Libraries |
| 2 |
===================== |
| 3 |
|
| 4 |
Using the XDG Portals D-Bus APIs directly is often difficult and error-prone. |
| 5 |
Fortunately, there are convenience libraries available that significantly ease |
| 6 |
the development of apps: |
| 7 |
|
| 8 |
* `ASHPD <https://bilelmoussaoui.github.io/ashpd/ashpd/>`_: a **Rust** crate that |
| 9 |
provides the APIs to interact with portals in idiomatic Rust. It has support for |
| 10 |
GTK4, direct X11 windows, and direct Wayland surfaces. |
| 11 |
* `libportal <https://github.com/flatpak/libportal/>`_: small **C** library that |
| 12 |
provides a GObject API to interact with portals. It provides language bindings |
| 13 |
to a variety of other languages, such as **Python**, **JavaScript**, **Vala**, |
| 14 |
and more. It has support for GTK3, GTK4, Qt 5, and Qt 6. |
| 15 |
* `portal <https://github.com/rymdport/portal>`_: a **Go** module that provides |
| 16 |
native APIs for interacting with portals from idiomatic Go code. |
| 17 |
It aims to be both toolkit agnostic and easy to use. |
| 18 |
* `Stargate <https://github.com/zugaldia/stargate>`_: a **Kotlin** JVM library |
| 19 |
that provides idiomatic Kotlin access to all XDG portals. It is compatible |
| 20 |
with all desktop environments, and a GTK4 example application built with |
| 21 |
Java-GI is included. |
| 22 |
* `xdg_desktop_portal <https://pub.dev/packages/xdg_desktop_portal>`_: a native |
| 23 |
**Dart** package to interact with portals in **Dart** and **Flutter**. |