Hi,
I've recently installed Slackware 14.1 on my Thinkpad using XFCE and it works great; I'm however trying to figure out how to start Xorg on the same virtual terminal I login to. Xlock isn't very effective when kids know how to switch from TTY7, and Ctrl+C xorg...
Google gave me this code snippet to put in ~/.xserverrc:
Code:
#!/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 "$vt" "$@"
And it works fine except that my consolekit session isn't active
Code:
ck-list-sessions
...
active = FALSE
meaning XFCE stuff like suspend buttons stop working. I've found a bug report which I'm unsure is related:
https://bugs.freedesktop.org/show_bug.cgi?id=29920
so I've modified /etc/rc.d/rc.consolekit to include
Code:
openvt -c 63 -f -- console-kit-daemon --no-daemon &
But that didn't help.
I've weighed disabling consolekit and using group overrides for policykit. Disabling TTY switches seems a bit drastic, as I like using that functionality myself. Suggestions?
Thanks,
Sareth