Skip to content

Commit

Permalink
[welcome] added a small window for waiting calamares to start
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-192 committed Apr 20, 2024
1 parent 0262ce0 commit 2e87082
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions eos-install-mode-run-calamares
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,33 @@ AskMode() {
esac
}

PleaseWait() {
case "$1" in
start)
eos_yad --form --width=250 --title="Starting calamares" --text="Please wait..." --image=$ICO_CALAMARES --no-buttons &
waitpid=$(ps -ef | grep -wv grep | grep "\--no-buttons" | awk '{print $2}')
;;
stop)
while ! ps -C calamares ; do
sleep 1
done
sleep 3
sudo kill $waitpid
;;
esac
}

### Starts the calamares installer process and logging. ###
InstallWithLogs() {
local waitpid=""

PleaseWait start

InstallLog_Start
Calamares_Start

PleaseWait stop

if [ "$ShowPacmanLog" = "FALSE" ] ; then
sleep 5
return
Expand Down

0 comments on commit 2e87082

Please sign in to comment.