1<chapter xmlns="http://docbook.org/ns/docbook"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
4 version="5.0"
5 xml:id="sec-xfce">
6 <title>Xfce Desktop Environment</title>
7 <para>
8 To enable the Xfce Desktop Environment, set
9<programlisting>
10<link linkend="opt-services.xserver.desktopManager.default">services.xserver.desktopManager</link> = {
11 <link linkend="opt-services.xserver.desktopManager.xfce.enable">xfce.enable</link> = true;
12 <link linkend="opt-services.xserver.desktopManager.default">default</link> = "xfce";
13};
14 </programlisting>
15 </para>
16 <para>
17 Optionally, <emphasis>compton</emphasis> can be enabled for nice graphical
18 effects, some example settings:
19<programlisting>
20<link linkend="opt-services.compton.enable">services.compton</link> = {
21 <link linkend="opt-services.compton.enable">enable</link> = true;
22 <link linkend="opt-services.compton.fade">fade</link> = true;
23 <link linkend="opt-services.compton.inactiveOpacity">inactiveOpacity</link> = "0.9";
24 <link linkend="opt-services.compton.shadow">shadow</link> = true;
25 <link linkend="opt-services.compton.fadeDelta">fadeDelta</link> = 4;
26};
27 </programlisting>
28 </para>
29 <para>
30 Some Xfce programs are not installed automatically. To install them manually
31 (system wide), put them into your
32 <xref linkend="opt-environment.systemPackages"/>.
33 </para>
34 <simplesect xml:id="sec-xfce-thunar-volumes">
35 <title>Thunar Volume Support</title>
36 <para>
37 To enable <emphasis>Thunar</emphasis> volume support, put
38<programlisting>
39<xref linkend="opt-services.xserver.desktopManager.xfce.enable"/> = true;
40 </programlisting>
41 into your <emphasis>configuration.nix</emphasis>.
42 </para>
43 </simplesect>
44 <simplesect xml:id="sec-xfce-polkit">
45 <title>Polkit Authentication Agent</title>
46 <para>
47 There is no authentication agent automatically installed alongside Xfce. To
48 allow mounting of local (non-removable) filesystems, you will need to
49 install one. Installing <emphasis>polkit_gnome</emphasis>, a rebuild, logout
50 and login did the trick.
51 </para>
52 </simplesect>
53 <simplesect xml:id="sec-xfce-troubleshooting">
54 <title>Troubleshooting</title>
55 <para>
56 Even after enabling udisks2, volume management might not work. Thunar and/or
57 the desktop takes time to show up. Thunar will spit out this kind of message
58 on start (look at <command>journalctl --user -b</command>).
59<programlisting>
60Thunar:2410): GVFS-RemoteVolumeMonitor-WARNING **: remote volume monitor with dbus name org.gtk.Private.UDisks2VolumeMonitor is not supported
61 </programlisting>
62 This is caused by some needed GNOME services not running. This is all fixed
63 by enabling "Launch GNOME services on startup" in the Advanced tab of the
64 Session and Startup settings panel. Alternatively, you can run this command
65 to do the same thing.
66<programlisting>
67$ xfconf-query -c xfce4-session -p /compat/LaunchGNOME -s true
68 </programlisting>
69 A log-out and re-log will be needed for this to take effect.
70 </para>
71 </simplesect>
72</chapter>