From e08a385c6995c7e63dd8d00b89232e63d9426972 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sat, 28 May 2022 11:44:03 +0200 Subject: [PATCH] don't as for Enter on wayland start #2 --- usr/lib/archboot/login.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/usr/lib/archboot/login.sh b/usr/lib/archboot/login.sh index 4b8c40c02..334bcfacb 100644 --- a/usr/lib/archboot/login.sh +++ b/usr/lib/archboot/login.sh @@ -5,10 +5,13 @@ _welcome () { } _enter_shell() { - cd / - echo -e "Hit \033[1m\033[92mENTER\033[0m for \033[1mshell\033[0m login." - read - clear + # dbus sources profiles again + if ! pgrep -x dbus-run-session; then + cd / + echo -e "Hit \033[1m\033[92mENTER\033[0m for \033[1mshell\033[0m login." + read + clear + fi } if [[ -e /usr/bin/setup ]]; then @@ -16,10 +19,7 @@ if [[ -e /usr/bin/setup ]]; then echo -e "You are running in \033[92m\033[1mLocal mode\033[0m, with \033[1mlocal package repository\033[0m enabled.\033[0m" echo -e "To \033[1mswitch\033[0m to \033[1mOnline mode\033[0m:# \033[1m\033[91mrm /var/cache/pacman/pkg/archboot.db\033[0m\033[1m" fi - # dbus sources profiles again - if ! pgrep -x dbus-run-session; then - _enter_shell - fi + _enter_shell if ! [[ -e /tmp/.setup ]]; then setup fi