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