Find a file
James Edwards-Jones 13076d0c10 Add tooling to README
Describes how to trigger/test with portal-test and python snippets.
2019-07-24 19:38:20 +03:00
include Use sd_bus_message_append shorthand for screenshot 2019-07-24 18:28:26 +03:00
.gitignore Initial commit 2018-12-12 11:46:19 +01:00
LICENSE Initial commit 2018-12-12 11:46:19 +01:00
main.c First commit 2018-12-12 22:29:57 +01:00
meson.build Add D-Bus boilerplate for Screenshot 2018-12-13 18:03:44 +01:00
README.md Add tooling to README 2019-07-24 19:38:20 +03:00
request.c Add missing request.c 2019-02-12 13:09:21 +01:00
screenshot.c Use sd_bus_message_append shorthand for screenshot 2019-07-24 18:28:26 +03:00
wlr.portal First commit 2018-12-12 22:29:57 +01:00

xdg-desktop-portal-wlr

xdg-desktop-portal backend for wlroots

Building

meson build
ninja -C build

Installing

ninja -C build install

Make sure XDG_CURRENT_DESKTOP=sway is set.

/usr/lib/xdg-desktop-portal -r &
xdg-desktop-portal-wlr

Tooling

Useful tools include dbus-monitor to watch requests being made, and dbus-send and the similar busctl call for manual dbus calls.

You can test the integration with the portal-test flatpak app.

Alternatively you can trigger it with trigger-screen-shot.py and xdp-screen-cast.py.

License

MIT