I gave that a shot and ended up with some fatal errors in the log lol (x11 was installed).
But that's all good, when I watched the boot I noticed the audio would begin to play before the boot messages would finish and the desktop would eventually load. I decided to add a sleep 60 to the beginning of my script and when it rolled around it all loaded up correctly.
Its hacky as all hell and the OCD part of me would like something more concrete but I am happy that it loads , thank you for your help Fourdee, really do appreciate it.
Not sure if there is a way to tell myscript.services to wait until x11 has loaded or potentially some other processes so it runs once all other processes are operational?
after I get this baby operational I'll be moving on to playing with cloud stuff
Sipador wrote:I gave that a shot and ended up with some fatal errors in the log lol (x11 was installed).
But that's all good, when I watched the boot I noticed the audio would begin to play before the boot messages would finish and the desktop would eventually load. I decided to add a sleep 60 to the beginning of my script and when it rolled around it all loaded up correctly.
Its hacky as all hell and the OCD part of me would like something more concrete but I am happy that it loads , thank you for your help Fourdee, really do appreciate it.
after I get this baby operational I'll be moving on to playing with cloud stuff
Not sure if there is a way to tell myscript.services to wait until x11 has loaded or potentially some other processes so it runs once all other processes are operational?
Yep, is your systemD service currently set to After=graphical.target?
# - Wait for X11 process to run
while (( ! $(ps aux | grep -ci -m1 '[X]11') ))
do
# - wait 3 seconds before checking again
sleep 3
done
play movie
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
# - Wait for X11 process to run
while (( ! $(ps aux | grep -ci -m1 '[X]11') ))
do
# - wait 3 seconds before checking again
sleep 3
done
play movie
Yep After=graphical.target is set in myscript.service, it doesn't appear to be waiting.
Had to modify your script slightly to ( !(ps aux | grep -ci -m1 '[X]11') ) it works!
Didn't see the desktop before the video started to play, feels good hehe.