I have the following while loop in my Python script
while 1:
functionToGetXandY
if x == z:
os.system("google-chrome --start-maximized " + x)
currentLink = latestLink
if y == z:
subprocess.call([vlc_path, "--fullscreen", z])
time.sleep(1)
Whenever Chrome or VLC is started through the script the loop seems to stop - or sometimes wait until the opened window is closed. What am I missing?
Note: The infinite loop is on purpose - the script continuously checks an XML file to execute a command (that part works)