| Newsgroups |
gmane.linux.lfs.beyond.book |
| Message-ID |
<178249399462.2757559.417809784067108904@rivendell.linuxfromscratch.org> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch trunk
in repository blfs.
The following commit(s) were added to refs/heads/trunk by this push:
new 4e8e9dfeda Add xdg-desktop-portal-wlr for wlroots compositors.
4e8e9dfeda is described below
commit 4e8e9dfeda172251a6287ca39e6f89fd001c569e
Author: zeckma-tech <[email protected]>
AuthorDate: Fri Jun 26 11:11:44 2026 -0600
Add xdg-desktop-portal-wlr for wlroots compositors.
This provides the screencast and screenshot portal interfaces for
wlroots compositors, so if Wayfire is used, users will be able to
utilize those portal interfaces, like in the case of screen shot
programs such as grim.
---
introduction/welcome/changelog.xml | 10 +++
packages.ent | 1 +
x/lib/lib.xml | 1 +
x/lib/xdg-desktop-portal-wlr.xml | 172 +++++++++++++++++++++++++++++++++++++
x/lib/xdg-desktop-portal.xml | 7 +-
5 files changed, 188 insertions(+), 3 deletions(-)
diff --git a/introduction/welcome/changelog.xml b/introduction/welcome/changelog.xml
index 04d0a86c3b..208d1d15d3 100644
--- a/introduction/welcome/changelog.xml
+++ b/introduction/welcome/changelog.xml
@@ -39,6 +39,16 @@
<itemizedlist>
<title>Changelog Entries:</title>
+ <listitem>
+ <para>June 26th, 2026</para>
+ <itemizedlist>
+ <listitem>
+ <para>[zeckma] - Add xdg-desktop-portal-wlr for wlroots
+ compositors.</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+
<listitem>
<para>June 25th, 2026</para>
<itemizedlist>
diff --git a/packages.ent b/packages.ent
index fd0e924b0a..4a7a76923d 100644
--- a/packages.ent
+++ b/packages.ent
@@ -963,6 +963,7 @@
<!ENTITY wlroots-version "&wlroots-minor;.3">
<!ENTITY xdg-desktop-portal-version "1.22.1">
<!ENTITY xdg-desktop-portal-gtk-version "1.15.3">
+<!ENTITY xdg-desktop-portal-wlr-version "0.8.2">
<!ENTITY gtk2-libdir "2.0/2.10.0">
<!ENTITY qt6-dir "$QT6DIR">
diff --git a/x/lib/lib.xml b/x/lib/lib.xml
index 9537047375..e7ea0bd29d 100644
--- a/x/lib/lib.xml
+++ b/x/lib/lib.xml
@@ -89,5 +89,6 @@
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wlroots.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xdg-desktop-portal.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xdg-desktop-portal-gtk.xml"/>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xdg-desktop-portal-wlr.xml"/>
</chapter>
diff --git a/x/lib/xdg-desktop-portal-wlr.xml b/x/lib/xdg-desktop-portal-wlr.xml
new file mode 100644
index 0000000000..707ab72015
--- /dev/null
+++ b/x/lib/xdg-desktop-portal-wlr.xml
@@ -0,0 +1,172 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+ <!ENTITY % general-entities SYSTEM "../../general.ent">
+ %general-entities;
+
+ <!ENTITY xdg-desktop-portal-wlr-download-http
+ "https://github.com/emersion/xdg-desktop-portal-wlr/archive/v&xdg-desktop-portal-wlr-version;/xdg-desktop-portal-wlr-&xdg-desktop-portal-wlr-version;.tar.gz">
+ <!ENTITY xdg-desktop-portal-wlr-md5sum "598198f95b42d5ebab184119a0e2a821">
+ <!ENTITY xdg-desktop-portal-wlr-size "44 KB">
+ <!ENTITY xdg-desktop-portal-wlr-buildsize "4 MB">
+ <!ENTITY xdg-desktop-portal-wlr-time "0.1 SBU">
+]>
+
+<sect1 id="xdg-desktop-portal-wlr" xreflabel="xdg-desktop-portal-wlr-&xdg-desktop-portal-wlr-version;">
+ <?dbhtml filename="xdg-desktop-portal-wlr.html"?>
+
+ <title>xdg-desktop-portal-wlr-&xdg-desktop-portal-wlr-version;</title>
+
+ <indexterm zone="xdg-desktop-portal-wlr">
+ <primary sortas="a-xdg-desktop-portal-wlr">xdg-desktop-portal-wlr</primary>
+ </indexterm>
+
+ <sect2 role="package">
+ <title>Introduction to xdg-desktop-portal-wlr</title>
+
+ <para>
+ 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 <xref linkend="xdg-desktop-portal-gtk"/>, but
+ isn't strictly required unless you need those interfaces.
+ </para>
+
+ &lfs130_checked;
+
+ <bridgehead renderas="sect3">Package Information</bridgehead>
+ <itemizedlist spacing="compact">
+ <listitem>
+ <para>
+ Download (HTTP): <ulink url="&xdg-desktop-portal-wlr-download-http;"/>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Download MD5 sum: &xdg-desktop-portal-wlr-md5sum;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Download size: &xdg-desktop-portal-wlr-size;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Estimated disk space required: &xdg-desktop-portal-wlr-buildsize;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Estimated build time: &xdg-desktop-portal-wlr-time;
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <bridgehead renderas="sect3">xdg-desktop-portal-wlr Dependencies</bridgehead>
+
+ <bridgehead renderas="sect4">Required</bridgehead>
+ <para role="required">
+ <xref linkend="mesa"/>,
+ <xref linkend="inih"/>,
+ <xref linkend="libdrm"/>,
+ <phrase revision='sysv'><xref linkend="elogind"/>,</phrase>
+ <phrase revision='systemd'><xref linkend="systemd"/>,</phrase>
+ <xref linkend="pipewire"/>,
+ <xref linkend="wayland"/>,
+ <xref linkend="wayland-protocols"/>, and
+ <xref linkend="xdg-desktop-portal"/>
+ </para>
+
+ <bridgehead renderas="sect4">Recommended</bridgehead>
+ <para role="recommended">
+ <xref linkend="xdg-desktop-portal-gtk"/> (for providing most portals
+ interfaces like getting the preferred file manager)
+ </para>
+
+ <bridgehead renderas="sect4">Optional</bridgehead>
+ <para role="optional">
+ <ulink url="/slfs/view/dev/general/scdoc.html">scdoc</ulink>
+ </para>
+
+ </sect2>
+
+ <sect2 role="installation">
+ <title>Installation of xdg-desktop-portal-wlr</title>
+
+ <para>
+ Install xdg-desktop-portal-wlr by running the following commands:
+ </para>
+
+<screen><userinput>mkdir build &&
+cd build &&
+
+meson setup --prefix=/usr \
+ --buildtype=release \</userinput><phrase revision="sysv"><userinput>
+ -D sd-bus-provider=libelogind \</userinput></phrase><phrase revision="systemd"><userinput>
+ -D sd-bus-provider=libsystemd \</userinput></phrase><userinput>
+ .. &&
+
+ninja</userinput></screen>
+
+ <para>
+ This package doesn't come with a test suite.
+ </para>
+
+ <para>
+ Now, as the &root; user:
+ </para>
+
+<screen role="root"><userinput>ninja install</userinput></screen>
+
+ <para>
+ Ensure the portal can be detected as the &root; user:
+ </para>
+
+<screen
+ role="root"><userinput>cat > /usr/share/xdg-desktop-portal/wlr-portals.conf << "EOF"
+<literal>[preferred]
+default=wlr</literal>
+EOF</userinput></screen>
+
+ </sect2>
+
+ <sect2 role="commands">
+ <title>Command Explanations</title>
+
+ <para>
+ <parameter>-D sd-bus-provider=lib</parameter><parameter
+ revision="sysv">elogin</parameter><parameter
+ revision="systemd">system</parameter><parameter>d</parameter>:
+ This parameter tells the build system what provides the
+ <literal>sd-bus</literal> API, which in this case is <phrase
+ revision="sysv">elogin</phrase><phrase
+ revision="systemd">system</phrase>d.
+ </para>
+
+ </sect2>
+
+ <sect2 role="content">
+ <title>Contents</title>
+
+ <segmentedlist>
+ <segtitle>Installed Programs</segtitle>
+ <segtitle>Installed Libraries</segtitle>
+ <segtitle>Installed Directories</segtitle>
+
+ <seglistitem>
+ <seg>
+ one daemon in /usr/libexec
+ </seg>
+ <seg>
+ None
+ </seg>
+ <seg>
+ /usr/share/xdg-desktop-portal (if no other xdg-desktop-portal backend
+ is installed)
+ </seg>
+ </seglistitem>
+ </segmentedlist>
+
+ </sect2>
+
+</sect1>
diff --git a/x/lib/xdg-desktop-portal.xml b/x/lib/xdg-desktop-portal.xml
index 88e0784e29..dd1a9c18f7 100644
--- a/x/lib/xdg-desktop-portal.xml
+++ b/x/lib/xdg-desktop-portal.xml
@@ -83,9 +83,10 @@
<xref linkend="pipewire"/>, and
<xref role="runtime" linkend="dbus"/> (at runtime).
Furthermore, a backend is needed at runtime for this package to be of
- any use, either
- <xref role="runtime" linkend="xdg-desktop-portal-gtk"/> or
- <xref role="nodep" linkend="xdg-desktop-portal-gnome"/> or
+ any use, such as
+ <xref role="runtime" linkend="xdg-desktop-portal-gtk"/>,
+ <xref role="nodep" linkend="xdg-desktop-portal-wlr"/>,
+ <xref role="nodep" linkend="xdg-desktop-portal-gnome"/>, and/or
<xref role="nodep" linkend="xdg-desktop-portal-lxqt"/>
</para>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
--
http://lists.linuxfromscratch.org/sympa/info/blfs-book
Unsubscribe: See the above information page