Hello,

Sorry for this silly question, but is consolekit installed ?

Additionally, how do you start your X session ? Using a login manager
(xenodm ?), or from the console using `startx` ?

The script below requires the variable `XFCE4_SESSION_WITH_CK` is set to
`1` to run the session through consolekit. If you use `startx`, could
you try to `export XFCE4_SESSION_WITH_CK=1` ?

Regards.

Christophe

Le 04/13/18 à 12:38, Olivier REGNIER a écrit :
Hi,

After xfce was installed, I used the xinitrc file found in /usr/local/share/examples/xfce4-session.

It is very complete.

Xfce runs but ck-launch-session is not executed.

Here is the script related to ck-launch-session:

# run xfce4-session if installed
if which xfce4-session ›/dev/null 2›&1; then

   # check if we start xfce4-session with ck-launch-session. this is only
    # required for starting from a console, not a login manager
    if test "$XFCE4_SESSION_WITH_CK" = "1"; then
      if which ck-launch-session ›/dev/null 2›&1; then
        ck-launch-session xfce4-session
      else
        echo "You have tried to start Xfce with consolekit support, but"
        echo "ck-launch-session is not installed."
        echo "Aborted startup..."
        echo

        exit 1
      fi
    else
      # start xfce4-session normally
      xfce4-session
    fi

    exit 0
  fi

Thanks for your help.


Reply via email to