source: x/lib/xdg-desktop-portal.xml@ fb4719b

12.1 ken/TL2024 lazarus plabs/newcss rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since fb4719b was fb4719b, checked in by Bruce Dubbs <bdubbs@…>, 5 months ago

Spelling

  • Property mode set to 100644
File size: 7.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY xdg-desktop-portal-download-http "https://github.com/flatpak/xdg-desktop-portal/releases/download/&xdg-desktop-portal-version;/xdg-desktop-portal-&xdg-desktop-portal-version;.tar.xz">
8 <!ENTITY xdg-desktop-portal-download-ftp " ">
9 <!ENTITY xdg-desktop-portal-md5sum "20e0b28c1528e57b13cc236ba7840e03">
10 <!ENTITY xdg-desktop-portal-size "683 KB">
11 <!ENTITY xdg-desktop-portal-buildsize "51 MB (with tests)">
12 <!ENTITY xdg-desktop-portal-time "0.1 SBU (add 0.4 SBU for tests; with parallelism=4)">
13]>
14
15<sect1 id="xdg-desktop-portal" xreflabel="xdg-desktop-portal-&xdg-desktop-portal-version;">
16 <?dbhtml filename="xdg-desktop-portal.html"?>
17
18 <title>xdg-desktop-portal-&xdg-desktop-portal-version;</title>
19
20 <indexterm zone="xdg-desktop-portal">
21 <primary sortas="a-xdg-desktop-portal">xdg-desktop-portal</primary>
22 </indexterm>
23
24 <sect2 role="package">
25 <title>Introduction to xdg-desktop-portal</title>
26
27 <para>
28 <application>xdg-desktop-portal</application> is a D-Bus service that
29 allows applications to interact with the desktop in a safe way. Several
30 aspects of desktop interaction, like file chooser, desktop style, etc
31 are implemented in different D-Bus APIs, known as
32 <emphasis>portals</emphasis>. Sandboxed
33 applications benefit the most from this service since they don't need
34 special permissions to use the portal APIs, but any application can use
35 it. <application>xdg-desktop-portal</application> safeguards many
36 resources and features with a user-controlled permission system. This
37 service needs a backend implementing desktop-specific portal interfaces.
38 </para>
39
40 &lfs120_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&xdg-desktop-portal-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&xdg-desktop-portal-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &xdg-desktop-portal-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &xdg-desktop-portal-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &xdg-desktop-portal-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &xdg-desktop-portal-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">xdg-desktop-portal Dependencies</bridgehead>
77
78 <bridgehead renderas="sect4">Required</bridgehead>
79 <para role="required">
80 <xref linkend="fuse3"/>,
81 <xref linkend="gdk-pixbuf"/>,
82 <xref linkend="json-glib"/>,
83 <xref linkend="pipewire"/>, and
84 <xref role="runtime" linkend="dbus"/> (at runtime).
85 Furthermore, a backend is needed at runtime for this package to be of
86 any use, either
87 <xref role="runtime" linkend="xdg-desktop-portal-gtk"/> or
88 <xref role="nodep" linkend="xdg-desktop-portal-gnome"/> or
89 <xref role="nodep" linkend="xdg-desktop-portal-lxqt"/>
90 </para>
91
92 <bridgehead renderas="sect4">Recommended</bridgehead>
93 <para role="recommended">
94 <xref linkend="bubblewrap"/> and
95 <xref linkend="docutils"/> (for building the manual pages)
96 </para>
97
98 <note>
99 <para>
100 Although there is an option to build the package
101 without <application>bubblewrap</application>, upstream
102 developers and LFS editors alike highly recommend to not
103 use this possibility, that would create a big security
104 hole.
105 </para>
106 </note>
107
108 <bridgehead renderas="sect4">Optional</bridgehead>
109 <para role="optional">
110 <xref linkend="geoclue2"/> (for the <quote>location</quote> portal), and
111 <xref linkend="pytest"/> with
112 <xref linkend="libportal"/> (for running tests)
113 </para>
114
115 <bridgehead renderas="sect4">Optional (for building
116 the documentation)</bridgehead>
117 <para role="optional">
118 <xref linkend="sphinx"/> with
119 <ulink url="https://pypi.org/project/sphinxext-opengraph/">sphinxext.opengraph</ulink>,
120 <ulink url="https://pypi.org/project/sphinx-copybutton/">sphinx_copybutton</ulink>,
121 <ulink url="https://pypi.org/project/furo/">furo</ulink>, and
122 <ulink url="https://github.com/flatpak/flatpak">flatpak</ulink>
123 </para>
124
125 </sect2>
126
127 <sect2 role="installation">
128 <title>Installation of xdg-desktop-portal</title>
129
130 <para>
131 Install <application>xdg-desktop-portal</application> by running the
132 following commands:
133 </para>
134
135<screen><userinput>mkdir build &amp;&amp;
136cd build &amp;&amp;
137
138meson setup .. --prefix=/usr &amp;&amp;
139ninja</userinput></screen>
140
141 <para>
142 If you have installed the needed dependencies, you can test the results
143 by running <command>ninja test</command>.
144 </para>
145
146 <para>
147 Now, as the &root; user:
148 </para>
149
150<screen role="root"><userinput>ninja install</userinput></screen>
151
152 <para revision="sysv">
153 Remove systemd files that are useless: as the &root; user:
154 </para>
155
156<screen role="root" revision="sysv"><userinput>rm -rvf /usr/lib/systemd</userinput></screen>
157
158 </sect2>
159
160 <sect2 role="configuration">
161 <title>Configuring xdg-desktop-portal</title>
162
163 <sect3 id="xdg-desktop-portal-config">
164 <title>Config Files</title>
165 <para>
166 The main configuration files are
167 <filename>~/.config/xdg-desktop-portal/portals.conf</filename>,
168 <filename>/etc/xdg-desktop-portal/portals.conf</filename>, and
169 <filename>/usr/share/xdg-desktop-portal/portals.conf</filename>.
170 Several other locations can be searched for configuration files. See
171 <filename>portals.conf(5)</filename>.
172 </para>
173
174 <indexterm zone="xdg-desktop-portal xdg-desktop-portal-config">
175 <primary sortas="e-AA.config-xdg-desktop-portal-portals.conf">~/.config/xdg-desktop-portal/portals.conf</primary>
176 </indexterm>
177
178 <indexterm zone="xdg-desktop-portal xdg-desktop-portal-config">
179 <primary
180 sortas="e-etc-xdg-desktop-portal-portals.conf">/etc/xdg-desktop-portal/portals.conf</primary>
181 </indexterm>
182
183 <indexterm zone="xdg-desktop-portal xdg-desktop-portal-config">
184 <primary
185 sortas="e-usr-share-xdg-desktop-portal-portals.conf">/usr/share/xdg-desktop-portal/portals.conf</primary>
186 </indexterm>
187 </sect3>
188
189 <sect3><title>Configuration Information</title>
190
191 <para>
192 The various configuration files are used to choose the backend
193 depending of various conditions. See
194 <filename>portals.conf(5)</filename> for details.
195 </para>
196 </sect3>
197
198 </sect2>
199
200 <sect2 role="content">
201 <title>Contents</title>
202
203 <segmentedlist>
204 <segtitle>Installed Programs</segtitle>
205 <segtitle>Installed Librar(y,ies)</segtitle>
206 <segtitle>Installed Director(y,ies)</segtitle>
207
208 <seglistitem>
209 <seg>
210 several daemons in /usr/libexec
211 </seg>
212 <seg>
213 None
214 </seg>
215 <seg>
216 None
217 </seg>
218 </seglistitem>
219 </segmentedlist>
220 </sect2>
221</sect1>
Note: See TracBrowser for help on using the repository browser.