aboutsummaryrefslogtreecommitdiffstats
path: root/xfce/core/xfce4-session.xml
blob: 66629d86f9e2ef3b20a2e5dde94d8c4e66e4c79c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
<?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 xfce4-session-download-http
           "https://archive.xfce.org/src/xfce/xfce4-session/&xfce4-version;/xfce4-session-&xfce4-session-version;.tar.bz2">
  <!ENTITY xfce4-session-download-ftp  " ">
  <!ENTITY xfce4-session-md5sum        "620c369a44c6b866c80d31e4685d6bef">
  <!ENTITY xfce4-session-size          "901 KB">
  <!ENTITY xfce4-session-buildsize     "16 MB">
  <!ENTITY xfce4-session-time          "0.1 SBU">
]>

<sect1 id="xfce4-session" xreflabel="xfce4-session-&xfce4-session-version;">
  <?dbhtml filename="xfce4-session.html"?>


  <title>xfce4-session-&xfce4-session-version;</title>

  <indexterm zone="xfce4-session">
    <primary sortas="a-xfce4-session">xfce4-session</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to Xfce4 Session</title>

    <para>
      <application>Xfce4 Session</application> is a session manager for
      <application>Xfce</application>. Its task is to save the state of your
      desktop (opened applications and their location) and restore it during a
      next startup. You can create several different sessions and choose one of
      them on startup.
    </para>

    &lfs122_checked;

    <bridgehead renderas="sect3">Package Information</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>
          Download (HTTP): <ulink url="&xfce4-session-download-http;"/>
        </para>
      </listitem>
      <listitem>
        <para>
          Download (FTP): <ulink url="&xfce4-session-download-ftp;"/>
        </para>
      </listitem>
      <listitem>
        <para>
          Download MD5 sum: &xfce4-session-md5sum;
        </para>
      </listitem>
      <listitem>
        <para>
          Download size: &xfce4-session-size;
        </para>
      </listitem>
      <listitem>
        <para>
          Estimated disk space required: &xfce4-session-buildsize;
        </para>
      </listitem>
      <listitem>
        <para>
          Estimated build time: &xfce4-session-time;
        </para>
      </listitem>
    </itemizedlist>

    <bridgehead renderas="sect3">Xfce4 Session Dependencies</bridgehead>

    <bridgehead renderas="sect4">Required</bridgehead>
    <para role="required">
      <xref linkend="libwnck"/> and
      <xref linkend="libxfce4ui"/>
    </para>

    <bridgehead renderas="sect4">Recommended</bridgehead>
    <para role="recommended">
      <xref linkend="desktop-file-utils"/>,
      <ulink url="https://docs.xfce.org/apps/screensaver/start">xfce4-screensaver</ulink>  or <xref linkend="xscreensaver"/>,
      <xref linkend="shared-mime-info"/> and
      <xref linkend="polkit-gnome"/>
    </para>

    <bridgehead renderas="sect4">Required Runtime</bridgehead>
    <para role="required">
      <xref role="runtime" linkend="xfdesktop"/>
    </para>

  </sect2>

  <sect2 role="installation">
    <title>Installation of Xfce4 Session</title>

    <para>
      Install <application>Xfce4 Session</application> by running the following
      commands:
    </para>

<screen><userinput>./configure --prefix=/usr \
            --sysconfdir=/etc \
            --disable-legacy-sm &amp;&amp;
make</userinput></screen>

    <para>
      This package does not come with a test suite.
    </para>

    <para>
      Now, as the <systemitem class="username">root</systemitem> user:
    </para>

<screen role="root"><userinput>make install</userinput></screen>

  </sect2>

  <sect2 role="commands">
    <title>Command Explanations</title>

    <para>
      <parameter>--disable-legacy-sm</parameter>: This switch disables
      legacy session management which isn't necessary on modern
      system.
    </para>

  </sect2>

  <sect2 role="configuration">
    <title>Configuring Xfce4 Session</title>

    <para>
      There are several optional run time dependencies for
      <application>Xfce4</application>:
      <xref linkend="dbus"/>,
      <xref linkend="gnupg2"/>,
      <xref linkend="hicolor-icon-theme"/>,
      <xref linkend="openssh"/>, and
      <xref linkend="xinit"/>
    </para>

    <para>
      When building an <application>Xfce4</application> package, some
      configuration files are installed in <filename class="directory">
      /usr/share/applications</filename>, <filename class="directory">
      /usr/share/icons</filename>, and <filename class="directory">
      /usr/share/mime</filename>. In order to use those files in your
      <application>Xfce4</application> session, you need to update various
      databases. Do that by running, as the <systemitem class="username">
      root</systemitem> user (you need to have the recommended dependencies
      installed):
   </para>

<screen role="root"><userinput>update-desktop-database &amp;&amp;
update-mime-database /usr/share/mime</userinput></screen>
  </sect2>

  <sect2 role="starting">
    <title>Starting Xfce4</title>

    <para revision="sysv">
      You can start <application>Xfce4</application> from runlevel 3, using
      <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
      such as <xref linkend="lightdm"/>.
    </para>

    <para revision="systemd">
      You can start <application>Xfce4</application> from a TTY using
      <xref linkend="xinit"/>, or from a graphical display manager, such as
      <xref linkend="lightdm"/>.
    </para>

    <para>
      To start <application>Xfce4</application> using <xref linkend="xinit"/>,
      run the following commands:
    </para>

    <!-- TODO: A plain "startxfce4" command works for me on Systemd.
         But maybe it does not work on SysV.  Need more investigate.  -->

<screen role="nodump"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
<literal>dbus-launch --exit-with-x11 startxfce4</literal>
EOF

startx</userinput></screen>

    <para>
      The X session starts on the first unused virtual terminal, normally vt7.
      You can switch to another vt<emphasis>n</emphasis> simultaneously
      pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
      (<emphasis>n</emphasis>=1, 2, ...).  To switch back to the X session,
      normally started at vt7, use Ctrl-Alt-F7. The vt where the command
      <command>startx</command> was executed will display many messages,
      including X starting messages, applications automatically started with
      the session, and eventually, some warning and error messages. You may
      prefer to redirect those messages to a log file, which not only will keep
      the initial vt uncluttered, but can also be used for debugging purposes. This
      can be done starting X with:
    </para>

    <screen role="nodump"><userinput>startx &amp;&gt; ~/.x-session-errors</userinput></screen>

    <note revision="sysv">
      <para>
        You may wish to drop dbus-launch, e.g., just using
        startxfce4 in ~/.xinitrc. However some capabilities such as mounting or
        umounting file systems from a file manager will not be possible, or the
        reboot option will be absent or inoperative, among other problems.
      </para>
    </note>

    <para>
      When shutting down or rebooting, the shutdown messages appear on the vt
      where X was running. If you wish to see those messages, simultaneously
      press keys Alt-F7 (assuming that X was running on vt7).
    </para>

  </sect2>

  <sect2 role="content">
    <title>Contents</title>

    <segmentedlist>
      <segtitle>Installed Programs</segtitle>
      <segtitle>Installed Library</segtitle>
      <segtitle>Installed Directories</segtitle>

      <seglistitem>
        <seg>
          startxfce4,
          xfce4-session,
          xfce4-session-logout,
          xfce4-session-settings, and
          xflock4
        </seg>
        <seg>
          None
        </seg>
        <seg>
          /usr/lib/xfce4/session
        </seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="startxfce4">
        <term><command>startxfce4</command></term>
        <listitem>
          <para>
            is a script responsible for starting an
            <application>Xfce</application> session.
          </para>
          <indexterm zone="xfce4-session startxfce4">
            <primary sortas="b-startxfce4">startxfce4</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="xfce4-session-prog">
        <term><command>xfce4-session</command></term>
        <listitem>
          <para>
            starts up the <application>Xfce</application> Desktop Environment
          </para>
          <indexterm zone="xfce4-session xfce4-session-prog">
            <primary sortas="b-xfce4-session">xfce4-session</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="xfce4-session-logout">
        <term><command>xfce4-session-logout</command></term>
        <listitem>
          <para>
            logs out from <application>Xfce</application>
          </para>
          <indexterm zone="xfce4-session xfce4-session-logout">
            <primary sortas="b-xfce4-session-logout">xfce4-session-logout</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="xfce4-session-settings">
        <term><command>xfce4-session-settings</command></term>
        <listitem>
          <para>
            is a <application>GTK+ 3</application> GUI which allows you to alter
            your preferences for your <application>Xfce Session</application>
          </para>
          <indexterm zone="xfce4-session xfce4-session-settings">
            <primary sortas="b-xfce4-session-settings">xfce4-session-settings</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>