2017-10-24 16:16:58 +00:00
|
|
|
#!/bin/sh
|
2017-10-07 16:27:42 +00:00
|
|
|
|
2017-10-24 16:16:58 +00:00
|
|
|
# XFCE4 autostart on tty1 (Autologin on tty1 is enabled in
|
|
|
|
# /etc/inittab by postmarketos-base post-install.hook).
|
|
|
|
# This is a temporary solution, we'll need something like a
|
|
|
|
# display manager in the long run (#656).
|
2018-08-02 20:10:56 +00:00
|
|
|
if [ "$(id -u)" = "10000" ] && [ "$(tty)" = "/dev/tty1" ]; then
|
2017-10-24 16:16:58 +00:00
|
|
|
# Start X11 with XFCE4
|
2018-05-21 15:53:29 +00:00
|
|
|
ck-launch-session dbus-launch --exit-with-session startxfce4 2>&1 | logger -t "$(whoami):x11"
|
2017-10-24 16:16:58 +00:00
|
|
|
|
2017-10-07 16:27:42 +00:00
|
|
|
|
|
|
|
# In case of failure, restart after 1s
|
|
|
|
sleep 1
|
|
|
|
exit
|
|
|
|
fi
|