[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#549377: xinit: xserverrc ignores arguments from startx



Package: xinit
Version: 1.1.1-1

The startx script invokes xinit like this:

xinit "$client" $clientargs -- "$server" $display $serverargs

If there are no explicit arguments and no local .xserverrc script, $server
has been previously initialized to /etc/X11/xinit/xserverrc.

$serverargs holds, among other things, the auth file. The xinit line in a
typical system looks like this:

xinit /home/cigaes/.xinitrc -- /etc/X11/xinit/xserverrc :0 -auth /tmp/serverauth.axdsHbFbfp

The problem is that the default xserverrc script looks like this:

exec /usr/bin/X11/X -nolisten tcp

Which means it completely ignores its arguments, including the -auth stuff.
Cookie-based authentication is therefore not enabled in the server.

Suggested fix:

exec /usr/bin/X11/X -nolisten tcp "$@"

Seems to work for me.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: Digital signature


Reply to: