[Xfce4-commits] <xfce4-session:master> Reuse existing ConsoleKit sessions (bug #6685).

Auke Kok auke at foo-projects.org
Mon Sep 20 08:34:18 CEST 2010


On 09/19/2010 11:17 PM, Yves-Alexis Perez wrote:
> On dim., 2010-09-19 at 23:17 +0200, Jannis Pohlmann wrote:
>> On Sun, 19 Sep 2010 15:03:38 +0200
>> Enrico Tröger<enrico at xfce.org>  wrote:
>>
>>> On Sun, 19 Sep 2010 14:15:19 +0200, Yves-Alexis wrote:
>>>
>>>
>>>>> Since ages, I start Xfce after logging into a console with
>>>>> 'startxfce4' and except the Policykit/Consolekit mess, it
>>>>> always worked perfectly.
>>>>
>>>> Which is doomed to fail, because startxfce4 has no way (and
>>>> shouldn't, anyway) to know everything to start. In Debian, we
>>>> use /etc/X11/Xsession.d for that, where the stuff you install put
>>>> scripts to be run when the session is run.
>>>
>>> Ok, I realise we are not supposed to use startxfce4 anymore. Sad but
>>> ok.
>>
>> If Yves-Alexis is right then you are not supposed to call startxfce4
>> yourself anymore but it still can be used in your .xsession.
>
> Yes :)

people still make .xsession? wow... :)

>> I'm not 100% sure here but this is what I think about the situation:
>>
>> Before ConsoleKit, there was no "real" concept of sessions in the
>> desktop world. There was communication between processes via ICE and of
>> course there was basic session management based on X11 (a desktop
>> environment may only run as long as the X server is up for instance) and
>> in Xfce we had a dedicated D-Bus API for handling session management in
>> client applications. The only session management of importance was our
>> own, initiated by xfce4-session and valid only as long as xfce4-session
>> was running. That's why startxfce4 could be used the same way in all
>> situations.
>
> To be really fair, no. Dbus, ssh-agent etc. already needed to be started
> *before* the session.

This is the concept we've implemented in uxlaunch and I strongly agree 
with this. On top of that, it's also what Gdm does... Deviating from 
this doesn't make much sense - it's just the better place.

>> Yves-Alexis explained how it is supposed to be done in Debian. Now I
>> wonder how other distributions handle this situation? What about
>> Fedora, Arch etc.? We need to figure out if there is a standard way, so
>> we can teach the "manual people" how to do it right.
>
> I think we need input from consolekit people on those platforms, too.
> Imho the startup should be done by consolekit itself (which knows better
> than us how to do it), but the DE should somehow figure out how to be
> sure it's correctly started too (since it's a core functionality). I
> heard there was some Xinitrc.d where scripts could be put, but I don't
> think it behaves the same way as Xsession.d, which is not upstream for
> unknown reasons.

well, I'd really try and not tell people to use either Xsession or 
xinitrc.d stuff. Nobody knows how it works, distro support is probably 
sparse, and on top of that any alternative to gdm should get this 
reasonably right, just like I'm trying to do with uxlaunch...

Cheers,

Auke



More information about the Xfce4-dev mailing list