Autostart on linux. Closes #4989.