xdg-desktop-portal-wlr-0.8.2

Introduction to xdg-desktop-portal-wlr

The xdg-desktop-portal-wlr package provides the screenshot and screencast portal interfaces for wlroots compositors. Most of the other portal interfaces are provided by xdg-desktop-portal-gtk-1.15.3, but isn't strictly required unless you need those interfaces.

[Note]

Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

Package Information

xdg-desktop-portal-wlr Dependencies

Required

Mesa-26.0.7, inih-62, libdrm-2.4.134, elogind-257.14, pipewire-1.6.7, Wayland-1.25.0, wayland-protocols-1.49, and xdg-desktop-portal-1.22.1

Recommended

Optional

scdoc

Installation of xdg-desktop-portal-wlr

Install xdg-desktop-portal-wlr by running the following commands:

mkdir build &&
cd    build &&

meson setup --prefix=/usr                 \
            --buildtype=release           \
            -D sd-bus-provider=libelogind \
            .. &&

ninja

This package doesn't come with a test suite.

Now, as the root user:

ninja install

Ensure the portal can be detected as the root user:

cat > /usr/share/xdg-desktop-portal/wlr-portals.conf << "EOF"
[preferred]
default=wlr
EOF

Command Explanations

-D sd-bus-provider=libelogind: This parameter tells the build system what provides the sd-bus API, which in this case is elogind.

Contents

Installed Programs: one daemon in /usr/libexec
Installed Libraries: None
Installed Directories: /usr/share/xdg-desktop-portal (if no other xdg-desktop-portal backend is installed)