[PATCH xinit v3 3/3] startx: Under Linux start X on the current VT

Hans de Goede hdegoede at redhat.com
Sat Apr 5 03:10:29 PDT 2014


Hi,

On 04/04/2014 09:35 PM, Connor Behan wrote:
> On 04/04/14 05:39 AM, Peter Hutterer wrote:
>> On Mon, Mar 31, 2014 at 03:51:46PM +0200, Hans de Goede wrote:
>>> When we let X allocate a new VT, systemd-logind will not recognize any
>>> processes running on this VT as belonging to a valid session (since there
>>> was no pam session opened on that tty).
>>>
>>> This causes problems like PolicyKit denials for these processes.
>>>
>>> ConsoleKit under Linux has been deprecated for a few years now and is no
>>> longer being maintained, so simply make this the default under Linux.
>>>
>>> Note we do not pass in the vt if the user has specified an alternative server
>>> to start, as the vtX argument is only valid for the Xorg server, likewise we
>>> omit it if the user has specified any other server arguments.
>>>
>>> Fixes:
>>> https://bugzilla.redhat.com/show_bug.cgi?id=806491
>>>
>>> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
>> Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>
> So this would cause an unrelated option like -nolisten tcp to change the
> VT on which X runs? I think this violates the principle of least surprise.

Yeah I have to agree with you here, I'll do a follow up patch changing things
so that the vt option only will not get added if a user already specifies
a vt himself.

Regards,

Hans


More information about the xorg-devel mailing list