diff --git a/README.md b/README.md index d06bb7a..a15dad6 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ steam-session (steam-login) Put STEAM BigPicture mode at login screen +Also provide systemd target for direct login into STEAM BigPicture at system startup. +To do so, add `systemd.unit=steam-de@.target` to kernel options. + NEWS ---- * *Version 11 - Test version with Steam manager*
diff --git a/steam-login/usr/bin/steam-de b/steam-login/usr/bin/steam-de index 0b46755..3c67f1c 100755 --- a/steam-login/usr/bin/steam-de +++ b/steam-login/usr/bin/steam-de @@ -117,7 +117,7 @@ export NVIDIA_SETTINGS export GNOME_SETTINGS_DAEMON export PREFIX="" export PROGRAM="" -export STEAM_ARGS="-tenfoot -enableremotecontrol" +export STEAM_ARGS="-tenfoot -enableremotecontrol $@" if cmd_exist steam; then STEAM="$(get_path steam)" diff --git a/steam-login/usr/lib/systemd/system/steam-de-xorg@.service b/steam-login/usr/lib/systemd/system/steam-de-xorg@.service new file mode 100644 index 0000000..ed9ef3a --- /dev/null +++ b/steam-login/usr/lib/systemd/system/steam-de-xorg@.service @@ -0,0 +1,14 @@ +# Copyright (C) 2020 ТяФ/ка (tyafffka) +# +# This file is part of steam-login package; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. + +[Unit] +Description=Xorg for Steam DE on %I +After=multi-user.target + +[Service] +Type=simple +ExecStart=/usr/bin/Xorg -noreset -nolisten tcp %I diff --git a/steam-login/usr/lib/systemd/system/steam-de@.service b/steam-login/usr/lib/systemd/system/steam-de@.service new file mode 100644 index 0000000..3752767 --- /dev/null +++ b/steam-login/usr/lib/systemd/system/steam-de@.service @@ -0,0 +1,25 @@ +# Copyright (C) 2020 ТяФ/ка (tyafffka) +# +# This file is part of steam-login package; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. + +[Unit] +Description=Steam DE for %i +Wants=steam-de-xorg@vt1.service +Conflicts=getty@tty1.service +After=getty@tty1.service steam-de-xorg@vt1.service systemd-user-sessions.service systemd-logind.service + +[Service] +Type=simple +Restart=always +RestartSec=1 +StartLimitIntervalSec=0 +User=%i +WorkingDirectory=~ +TTYPath=/dev/tty1 +PAMName=login +Environment=XDG_SESSION_TYPE=x11 DISPLAY=:0 +EnvironmentFile=-/etc/default/locale +ExecStart=/bin/bash --login /usr/bin/steam-de -steamos diff --git a/steam-login/usr/lib/systemd/system/steam-de@.target b/steam-login/usr/lib/systemd/system/steam-de@.target new file mode 100644 index 0000000..8c037d5 --- /dev/null +++ b/steam-login/usr/lib/systemd/system/steam-de@.target @@ -0,0 +1,14 @@ +# Copyright (C) 2020 ТяФ/ка (tyafffka) +# +# This file is part of steam-login package; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. + +[Unit] +Description=Autologin directly to Steam DE for %i +Requires=multi-user.target +Wants=steam-de@%i.service +Conflicts=rescue.service rescue.target +After=multi-user.target rescue.service rescue.target steam-de@%i.service +AllowIsolate=yes