[<<][pool][>>][..]
Fri Feb 19 13:55:39 EST 2016

Machine startup

- /etc/inittab -> login root automatically (debug only)
- /etc/lightdm -> start session (~/.xsession)

tom@zoe:/etc/lightdm$ cat lightdm.conf
[LightDM]
[SeatDefaults]
autologin-user=tom
autologin-user-timeout=0
[Seat:*]
[XDMCPServer]
[VNCServer]

--------------
Below is debug log about tracking down the problem again.
Session managers start .xsession, startx starts .xinitrc
Fooled how many times now?



Then in dot/xinitrc.$HOSTNAME add the host-specific hacks, such as start kodi.


Wtf that doesn't work any more..
In /var/log/lightdm/lightdm.log:

[+0.59s] DEBUG: Session pid=4211: Running command /etc/X11/Xsession default
[+0.59s] DEBUG: Creating shared data directory /var/lib/lightdm/data/tom
[+0.59s] DEBUG: Session pid=4211: Logging to .xsession-errors
[+0.60s] DEBUG: Activating VT 7
[+1.58s] DEBUG: Session pid=4211: Exited with return value 5


# .xsession-errors:
Xsession: X session started for tom at Fri Feb 19 14:08:18 EST 2016
localuser:tom being added to access control list

** (x-window-manager:4216): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

(x-window-manager:4216): GLib-GIO-ERROR **: Settings schema 'org.gnome.settings-daemon.peripherals.mouse' is not installed

Tracing this down by adding this line in the loop on the end of /etc/X11/Xsession
echo "sourcing $SESSIONFILE" >>"$ERRFILE"
Result ends up in .xsession-errors
Error is caused by:
sourcing /etc/X11/Xsession.d/99x11-common_start

Eventually it execs this:
STARTUP=/usr/bin/ssh-agent   /usr/bin/dbus-launch --exit-with-session x-window-manager

Why is it not just running my x session file?
culprit:

# $Id: 50x11-common_determine-startup 305 2005-07-03 18:51:43Z dnusinow $
# If no X session startup program was passed to the Xsession script as an
# argument (e.g., by the display manager), or if that program was not
# executable, fall back to looking for a user's custom X session script, if
# allowed by the options file.
if [ -z "$STARTUP" ]; then
  if has_option allow-user-xsession; then
    for STARTUPFILE in "$USERXSESSION" "$ALTUSERXSESSION"; do
      if [ -e "$STARTUPFILE" ]; then
        if [ -x "$STARTUPFILE" ]; then
          STARTUP="$STARTUPFILE"
        else
          shell=${SHELL:-sh}
          STARTUP="$shell $STARTUPFILE"
        fi
        break
      fi
    done
  fi
fi




[Reply][About]
[<<][pool][>>][..]