Open DFXThomas opened 6 years ago
Tried both scripts, I recommend the one from DFXThomas. Thanks for posting!
Just one note: in order to replicate features of original script, a led.blink(.2,.2)
is missing.
I deliberately left out led.blink, because it regularly caused problems for me. The LED would sometimes turn off several seconds before shutdown was actually completed. I'd keep the light on until it is 100% safe to turn the unit off.
I see, thanks for the feedback, I thought it just had been overlooked. I like the blinking, I'll try tonight to add it and see if it works for me.
First of all, thanks for trying to fix the "emulationstation metadata" issue. Really appreciated. However, I think your latest script does have some flaws. Let's look at this code:
This causes two problems:
Well, here's my idea of how to fix these issues:
This method will work regardless if you're currently running emulationstation or not. It's also a lot faster. You'll need to install "python3-psutil" before it will work, though.
Have fun everyone! :-)
P.S. Here's my complete script. Maybe it's useful for some.