[Xfce-bugs] [Bug 6684] New: Unneeded consolekit session started by xinitrc

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Mon Sep 6 20:14:39 CEST 2010


http://bugzilla.xfce.org/show_bug.cgi?id=6684

           Summary: Unneeded consolekit session started by xinitrc
    Classification: Xfce
           Product: Xfce-utils
           Version: 4.7.0
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: General
        AssignedTo: xfce-bugs at xfce.org
        ReportedBy: mrpouit at gmail.com


hi,

/etc/xdg/xfce4/xinitrc does the following:
=====
# Run xfce4-session if installed
if which xfce4-session >/dev/null 2>&1; then
    if which ck-launch-session >/dev/null 2>&1; then
      ck-launch-session xfce4-session
    else
      xfce4-session
    fi

    if test "$ssh_agent_kill_cmd"; then
        echo "running '$ssh_agent_kill_cmd'"
        eval "$ssh_agent_kill_cmd"
    fi

    exit 0
fi
=====
So if available, it creates a new consolekit session and starts xfce4-session
inside it.


But, from what I could understand, it creates several issues with other
ck-aware programs:

- login managers (such as gdm) already spawn a ck session. So this creates a
second ck session, which is inactive, and xfce4-session and all its descendant
will inherit from this one, thus get no permission to shutdown/suspend, etc.

- similarly, session managers such as xfce4-session 4.7.0 will create a new ck
session, and everything will be borked again, in my case I end up with 3 of
them (I'll file a bug for xfce4-session to be able to reuse an existing one)

Of course, if someone uses xfce4-session 4.6.x and no login manager, then this
"ck-launch-session" is needed.

So, I don't know how you can do to please everyone, but, anyway, even with only
xfce4-session 4.7.0 this way to start xfce4-session seems buggy (should be
"xfce4-session" instead of "ck-launch-session xfce4-session").

Thanks!

-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Xfce-bugs mailing list