Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
xfce:xfce4-session:advanced [2012/03/02 13:55] – [Auto login from console] nickxfce:xfce4-session:advanced [2021/02/08 05:20] kevinbowen
Line 1: Line 1:
-====== Advanced ======+~~NOTOC~~ 
 +{{ :xfce:xfce.session.png?no link|}} 
 +====== xfce4-session - Advanced Topics ======
  
 ===== Auto login from console ===== ===== Auto login from console =====
Line 10: Line 12:
  
 This will start Xfce if you login from the first console. For properly registering the ConsoleKit session, you probably want to add ''<nowiki>--with-ck-launch</nowiki>'' with ''startxfce4'' (new since Xfce 4.10). Read the section below for more information. This will start Xfce if you login from the first console. For properly registering the ConsoleKit session, you probably want to add ''<nowiki>--with-ck-launch</nowiki>'' with ''startxfce4'' (new since Xfce 4.10). Read the section below for more information.
 +
 +===== SSH and GPG Agents =====
 +
 +By default xfce4-session tries to start the gpg- or ssh-agent. To disable this run the following commands:
 +
 +  xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false
 +  xfconf-query -c xfce4-session -p /startup/gpg-agent/enabled -n -t bool -s false
 +
 +To force the ''ssh-agent'' instead of the ''gpg-agent'' use the following command:
 +
 +  xfconf-query -c xfce4-session -p /startup/ssh-agent/type -n -t string -s ssh-agent
 +
 +In case you want to use gnome-keyring enable the {gui>Launch GNOME services on startup} in the {gui>Advanced} tab of the settings dialog. If you do this xfce4-session will not attempt to start the gpg- or ssh-agent. 
  
 ===== ConsoleKit ===== ===== ConsoleKit =====
Line 16: Line 31:
  
   - If you login on the console (without starting X) run ''ck-list-sessions''. Make sure ''active = TRUE'' and ''is-local = TRUE''. If not, check if the consolekit library is loaded by PAM.   - If you login on the console (without starting X) run ''ck-list-sessions''. Make sure ''active = TRUE'' and ''is-local = TRUE''. If not, check if the consolekit library is loaded by PAM.
-  - In 4.10, start Xfce with ''startxfce4 --with-ck-launch''. This will start xfce4-session with //ck-launch-session//. In 4.10, Xfce4-sesion will take care of the dbus-session launch. +  - In 4.10, start Xfce with ''startxfce4 <nowiki>--with-ck-launch</nowiki>''. This will start xfce4-session with //ck-launch-session//. In 4.10, Xfce4-sesion will take care of the dbus-session launch. 
-  - When Xfce is started and you run ''ck-list-sessions'', a second session is created that should give you all required permissions to mount devices and execute power actions (depending per-distribution).+  - When Xfce is started and you run ''ck-list-sessions'', a second session is created that should give you all required permissions to mount devices and execute power actions (depending per-distribution, you might need to add yourself to various user groups).
 ===== Files and Environment Variables ===== ===== Files and Environment Variables =====
  
Line 44: Line 59:
 The session manager offers support for the Kiosk Mode, that helps to prevent users from making changes to their session settings. To use it you have to edit or create the file ''${sysconfdir}/xdg/xfce4/kiosk/kioskrc''. The session manager offers support for the Kiosk Mode, that helps to prevent users from making changes to their session settings. To use it you have to edit or create the file ''${sysconfdir}/xdg/xfce4/kiosk/kioskrc''.
  
-The way to explain the format of this file is by using an example. The xfce4-session section of your kioskrc might look like this:+The way to explain the format of this file is by using an example. The xfce4-session section of your ''kioskrc'' file might look like this:
  
   [xfce4-session]   [xfce4-session]
Line 54: Line 69:
   CustomizeSecurity=NONE   CustomizeSecurity=NONE
  
-This allows all users to change their splash, chooser and logout settings, but allows only users in the group wheel to customize the compatibility settings and shutdown the system. No one will be allowed to adjust the security settings.+This allows all users to change their splash, chooser and logout settings, but allows only users in the group ''wheel'' to customize the compatibility settings and shutdown the system. No one will be allowed to adjust the security settings.
  
 The session manager supports the following KIOSK capabilities: The session manager supports the following KIOSK capabilities: