diff options
Diffstat (limited to 'core')
-rwxr-xr-x | core/modules/vmchooser2/data/opt/openslx/bin/vmchooser | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser index 9bcc2b5a..a0048f39 100755 --- a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser +++ b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser @@ -80,13 +80,9 @@ fi # Delay autologin a bit to prevent the old vm process still cleaning up while trying to # set up a new one -- this might lead to OOM errors -if /opt/openslx/lightdm/is-autologin-enabled && [ -s "/run/openslx/session-killed" ]; then - KT=$(cat "/run/openslx/session-killed") - NOW=$(date +%s) - KT=$(( KT + 10 - NOW )) - if [ "$KT" -gt 0 ]; then - sleep "$KT" - fi +if /opt/openslx/lightdm/is-autologin-enabled; then + [ -s "/tmp/another-autologin" ] && sleep 5 + touch "/tmp/another-autologin" fi if [ -n "$SLX_LOCATIONS" ]; then |