Public bug reported:

In Raring and earlier, ConsoleKit was used for session management, and
/etc/X11/Xsession.d/90consolekit took care of preparing ConsoleKit
sessions via `ck-launch-session` when X was started via `startx` instead
of a graphical login manager.

In Saucy, ConsoleKit has been replaced with systemd-logind, which has no
equivalent for ck-launch-session and requires X to be started on the
same terminal as the console used to run `startx`.

Could /etc/X11/xinit/xserverrc be replaced with the following to
accommodate this and ensure that systemd-logind works properly with
`startx`?

#!/bin/bash

TTY="${TTY:-$(tty)}"
TTY="${TTY#/dev/}"
if [[ $TTY != tty* ]]; then
  printf '==> ERROR: invalid TTY\n' >&2
  exit 1
fi
printf -v VT 'vt%02d' "${TTY#tty}"

exec /usr/bin/X -nolisten tcp -dpi 100 "$VT" "$@"

This script comes from 
http://blog.falconindy.com/articles/back-to-basics-with-x-and-systemd.html
Some additional references:
http://askubuntu.com/questions/362403/how-to-create-a-new-logind-session-while-running-xinit-from-the-console
https://bugzilla.redhat.com/show_bug.cgi?id=806491
https://bugs.freedesktop.org/show_bug.cgi?id=71171

** Affects: xinit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xinit in Ubuntu.
https://bugs.launchpad.net/bugs/1247484

Title:
  systemd-logind sessions are not set up properly if `startx` is used

Status in “xinit” package in Ubuntu:
  New

Bug description:
  In Raring and earlier, ConsoleKit was used for session management, and
  /etc/X11/Xsession.d/90consolekit took care of preparing ConsoleKit
  sessions via `ck-launch-session` when X was started via `startx`
  instead of a graphical login manager.

  In Saucy, ConsoleKit has been replaced with systemd-logind, which has
  no equivalent for ck-launch-session and requires X to be started on
  the same terminal as the console used to run `startx`.

  Could /etc/X11/xinit/xserverrc be replaced with the following to
  accommodate this and ensure that systemd-logind works properly with
  `startx`?

  #!/bin/bash

  TTY="${TTY:-$(tty)}"
  TTY="${TTY#/dev/}"
  if [[ $TTY != tty* ]]; then
    printf '==> ERROR: invalid TTY\n' >&2
    exit 1
  fi
  printf -v VT 'vt%02d' "${TTY#tty}"

  exec /usr/bin/X -nolisten tcp -dpi 100 "$VT" "$@"

  This script comes from 
http://blog.falconindy.com/articles/back-to-basics-with-x-and-systemd.html
  Some additional references:
  
http://askubuntu.com/questions/362403/how-to-create-a-new-logind-session-while-running-xinit-from-the-console
  https://bugzilla.redhat.com/show_bug.cgi?id=806491
  https://bugs.freedesktop.org/show_bug.cgi?id=71171

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xinit/+bug/1247484/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to