1<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="sec-xfce">
2 <title>Xfce Desktop Environment</title>
3 <para>
4 To enable the Xfce Desktop Environment, set
5 </para>
6 <programlisting language="bash">
7services.xserver.desktopManager.xfce.enable = true;
8services.xserver.displayManager.defaultSession = "xfce";
9</programlisting>
10 <para>
11 Optionally, <emphasis>picom</emphasis> can be enabled for nice
12 graphical effects, some example settings:
13 </para>
14 <programlisting language="bash">
15services.picom = {
16 enable = true;
17 fade = true;
18 inactiveOpacity = 0.9;
19 shadow = true;
20 fadeDelta = 4;
21};
22</programlisting>
23 <para>
24 Some Xfce programs are not installed automatically. To install them
25 manually (system wide), put them into your
26 <xref linkend="opt-environment.systemPackages" /> from
27 <literal>pkgs.xfce</literal>.
28 </para>
29 <section xml:id="sec-xfce-thunar-plugins">
30 <title>Thunar</title>
31 <para>
32 Thunar (the Xfce file manager) is automatically enabled when Xfce
33 is enabled. To enable Thunar without enabling Xfce, use the
34 configuration option <xref linkend="opt-programs.thunar.enable" />
35 instead of simply adding <literal>pkgs.xfce.thunar</literal> to
36 <xref linkend="opt-environment.systemPackages" />.
37 </para>
38 <para>
39 If you'd like to add extra plugins to Thunar, add them to
40 <xref linkend="opt-programs.thunar.plugins" />. You shouldn't just
41 add them to <xref linkend="opt-environment.systemPackages" />.
42 </para>
43 </section>
44 <section xml:id="sec-xfce-troubleshooting">
45 <title>Troubleshooting</title>
46 <para>
47 Even after enabling udisks2, volume management might not work.
48 Thunar and/or the desktop takes time to show up. Thunar will spit
49 out this kind of message on start (look at
50 <literal>journalctl --user -b</literal>).
51 </para>
52 <programlisting>
53Thunar:2410): GVFS-RemoteVolumeMonitor-WARNING **: remote volume monitor with dbus name org.gtk.Private.UDisks2VolumeMonitor is not supported
54</programlisting>
55 <para>
56 This is caused by some needed GNOME services not running. This is
57 all fixed by enabling "Launch GNOME services on startup"
58 in the Advanced tab of the Session and Startup settings panel.
59 Alternatively, you can run this command to do the same thing.
60 </para>
61 <programlisting>
62$ xfconf-query -c xfce4-session -p /compat/LaunchGNOME -s true
63</programlisting>
64 <para>
65 A log-out and re-log will be needed for this to take effect.
66 </para>
67 </section>
68</chapter>