#!/bin/bash -login # Use vt1 here to because it corresponds with the tty1 value hardcoded inside # autologin source. This is somewhat fragile, but then the whole autologin # package is somewhat fragile too. # The tty used when speaking to PAM and the vt used by X *must* match up in # order for the session to be considered "active" by logind (and thus for all # ACLs etc. to work as expected) exec /usr/bin/startx "$@" -- vt1