I am new to Python, and programming in general. I am working on a Chrome-based media center, and one thing I would like it to is open Chrome in full screen automatically. Here is what I have so far. (For clarity, I am using Linux 3.16 on Ubuntu 14.10)
import time
import subprocess
#Opens Chrome
subprocess.call("google-chrome")
#Wait for Chrome to load
time.sleep(5)
#Open fullscreen
subprocess,call(["xdotool", "key", "F11"])
However, once Chrome loads, my script stops. When I close Chrome, my program continues, and executes xdotool after 5 seconds.
Any help is appreciated! Thanks!