main: Use QCoreApplication when -gui is not provided

QCoreApplication does not open an X connection
1 file changed