Run graphical or console UI depending on parameters and (lack of) system
console.