[Pkg-xfce-commits] r6407 - desktop/trunk/xfce4-session/debian

Yves-Alexis Perez corsac at alioth.debian.org
Sun Feb 12 06:17:24 UTC 2012


Author: corsac
Date: 2012-02-12 18:17:24 +0000 (Sun, 12 Feb 2012)
New Revision: 6407

Modified:
   desktop/trunk/xfce4-session/debian/README.Debian
   desktop/trunk/xfce4-session/debian/changelog
Log:
* debian/README
  - update text to more accurately describe the way to get ConsoleKit
    permissions.                                              closes: #658284

Modified: desktop/trunk/xfce4-session/debian/README.Debian
===================================================================
--- desktop/trunk/xfce4-session/debian/README.Debian	2012-02-12 18:06:37 UTC (rev 6406)
+++ desktop/trunk/xfce4-session/debian/README.Debian	2012-02-12 18:17:24 UTC (rev 6407)
@@ -1,5 +1,5 @@
-Running Xfce
-------------
+Running Xfce from a display manager
+-----------------------------------
 
 If use you a login manager like GDM or LightDM, you may have two ways to start
 Xfce :
@@ -13,25 +13,38 @@
   installed on your system, it will default to startxfce4, which will run the
   complete Xfce desktop environment.
 
-If you don't use a login manager but start Xfce from console, you need to
-take care of few stuff:
+GDM and LightDM will initialize ConsoleKit so you should be able to manage your
+computer (mount removable devices, suspend, shutdown or hibernate etc.).
 
+Running Xfce from the console
+-----------------------------
+
+If you don't use a login manager but start Xfce from console, you need to take
+care of few stuff in order to get a complete Xfce session with full permission
+(mount, suspend/shutdown/hibernate etc.) This is because Debian now uses
+PolicyKit/ConsoleKit to manage policies for things like device and power
+management. If you run Xfce from a compatible display manager (like gdm or
+lightdm), they'll talk to consolekit so your X session will have the
+authentication tokens, but if you use startx, it won't.
+
+Important stuff:
+
 * only use startx, without any argument
 * don't use a .xinitrc, use .xsession
 
-This is because Debian now uses PolicyKit/ConsoleKit to manage policies for
-things like device and power management. If you run Xfce from a compatible
-display manager (like gdm or lightdm), they'll talk to consolekit so your X
-session will have the authentication tokens, but if you use startx, it won't.
-There's a script shipped by default with ConsoleKit which will do that, in
-/etc/X11/Xsession.d/90consolekit, but the /etc/X11/Xsession.d/ scripts are only
-executed if you don't use any .xinitrc. See startx (1) for more information.
+This is because ConsoleKit ships an init script
+(/etc/X11/Xsession.d/90consolekit), but the /etc/X11/Xsession.d/ scripts are
+only executed if you don't use any .xinitrc. See startx (1) for more
+information.
 
-Managing shutdown
------------------
+Then you need to fine-tune your pam installation so ConsoleKit can be sure that
+your user is correctly authenticated. For that, you need to:
 
-There are two ways to enable user to shutdown the computer from Xfce:
+* install libpam-ck-connector
+* put:
 
- - use sudo, and allow user to run /usr/lib/*/xfce4/session/xfsm-shutdown-helper
- - use policykit and a compatible login manager (lightdm and gdm are known to
-   work, startx too if you use the tips above)
+----
+session   optional  pam_loginuid.so
+----
+
+*before* pam_ck_connector.so in /etc/pam.d/common-session.

Modified: desktop/trunk/xfce4-session/debian/changelog
===================================================================
--- desktop/trunk/xfce4-session/debian/changelog	2012-02-12 18:06:37 UTC (rev 6406)
+++ desktop/trunk/xfce4-session/debian/changelog	2012-02-12 18:17:24 UTC (rev 6407)
@@ -1,5 +1,6 @@
 xfce4-session (4.8.3-1) UNRELEASED; urgency=low
 
+  [ Lionel Le Folgoc ]
   * New upstream bugfix release.
   * debian/xfce4-autostart-editor.1, debian/manpages: dropped, the binary
     doesn't exist on Xfce 4.6 and later.
@@ -13,6 +14,11 @@
     - add dpkg-dev 1.16.1 build-dep for hardening support.
     - pre-depends on multiarch-support.
 
+  [ Yves-Alexis Perez ]
+  * debian/README
+    - update text to more accurately describe the way to get ConsoleKit
+      permissions.                                              closes: #658284
+
  -- Lionel Le Folgoc <mrpouit at gmail.com>  Sun, 12 Feb 2012 17:39:57 +0100
 
 xfce4-session (4.8.2-3) unstable; urgency=low




More information about the Pkg-xfce-commits mailing list