4
If use you a login manager like GDM, you may have two ways to start Xfce :
4
If use you a login manager like GDM or LightDM, you may have two ways to start
6
7
- “Xfce Session” will run a complete xfce session, using Xfce-provided
7
8
scripts (/usr/bin/startxfce4 which will then run /etc/xdg/xfce4/xinitrc
9
10
- “Default session” will run whatever is the default session manager on
10
11
your system. This is the /usr/bin/x-session-manager alternatives, meaning
11
12
you can tune it with update-alternatives (8). If you only have Xfce
12
installed on your system, it will default to xfce4-session, meaning
13
you'll be able to have an Xfce running chosing that option, but it'll be a
14
minimal one because all the preparation made in /etc/xdg/xfce4/xinitrc
15
before running xfce4-session won't be done.
13
installed on your system, it will default to startxfce4, which will run the
14
complete Xfce desktop environment.
17
16
If you don't use a login manager but start Xfce from console, you need to
18
17
take care of few stuff:
23
22
This is because Debian now uses PolicyKit/ConsoleKit to manage policies for
24
23
things like device and power management. If you run Xfce from a compatible
25
display manager (gdm and kdm), they'll talk to consolekit so your X session
26
will have the authentication tokens, but if you use startx, it won't.
24
display manager (like gdm or lightdm), they'll talk to consolekit so your X
25
session will have the authentication tokens, but if you use startx, it won't.
27
26
There's a script shipped by default with ConsoleKit which will do that, in
28
/etc/X11/Xsession.d/90consolekit, but the /etc/X11/Xsession.d/ scripts are
29
only executed if you don't use any .xinitrc. See startx (1) for more
27
/etc/X11/Xsession.d/90consolekit, but the /etc/X11/Xsession.d/ scripts are only
28
executed if you don't use any .xinitrc. See startx (1) for more information.
35
33
There are two ways to enable user to shutdown the computer from Xfce:
37
- use sudo, and allow user to run /usr/sbin/xfsm-shutdown-helper in sudoers
38
- use policykit and a compatible login manager (gdm is known to work,
39
startx too if you use the tips above)
35
- use sudo, and allow user to run /usr/lib/xfce4/session/xfsm-shutdown-helper
36
- use policykit and a compatible login manager (lightdm and gdm are known to
37
work, startx too if you use the tips above)