Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

21hildon-desktop-wait should not wait indefinitely #610

Open
nxdefiant opened this issue Feb 20, 2022 · 0 comments
Open

21hildon-desktop-wait should not wait indefinitely #610

nxdefiant opened this issue Feb 20, 2022 · 0 comments

Comments

@nxdefiant
Copy link

nxdefiant commented Feb 20, 2022

If there is something wrong with hildon-desktop the script /etc/X11/Xsession.post/21hildon-desktop-wait will wait until the end of days. As a result the getty for login without X on tty1-tty6 won't be spawned.
It would be beneficial if the script would time out after a few minutes, so network & tty logins can be used to repair the system.

A simple timeout implementation after a few minutes could look like this:

#!/bin/sh

i=0
while [ ! -e /tmp/hildon-desktop/desktop-started.stamp ]
do
    if [ $i -ge 60 ]; then
        exit 1
    fi
    sleep 1
    i=$((i+1))
done

sleep 5
dbus-send --system --type=signal /com/nokia/HildonDesktop/ready \
          com.nokia.HildonDesktop.ready

Note, that there are also many other scripts waiting indefinitely, e.g. /etc/X11/replace/Xsession.post/hildon-desktop-wait, /etc/init.d/hildon-desktop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant