Issue
I'm using python on a Raspberry Pi to display an image slideshow with the program fim.
subprocess.call(["fim /home/pi/slates"], shell=True)
Once fim has opened the focus stays on fim, not python. There are keyboard commands in python that no longer respond.
How do I go back to python after fim has been opened? Is there a way to control fim through python if it's no longer in focus?
Solution
subprocess.call() will block until the program called is complete.
If you want the called program to run in parallel, it would be better to use something like subprocess.Popen()
Answered By - Kingsley