2021-07-16 18:30:00 -06:00
|
|
|
#include <sys/resource.h>
|
|
|
|
|
2020-08-20 09:16:44 -06:00
|
|
|
#include <QApplication>
|
2021-05-02 17:28:36 -06:00
|
|
|
#include <QSslConfiguration>
|
2020-08-20 09:16:44 -06:00
|
|
|
|
2021-05-06 06:39:05 -06:00
|
|
|
#include "selfdrive/hardware/hw.h"
|
2021-05-08 23:15:17 -06:00
|
|
|
#include "selfdrive/ui/qt/qt_window.h"
|
2021-06-09 06:09:49 -06:00
|
|
|
#include "selfdrive/ui/qt/util.h"
|
2021-05-08 23:15:17 -06:00
|
|
|
#include "selfdrive/ui/qt/window.h"
|
2020-08-20 09:16:44 -06:00
|
|
|
|
2020-08-27 12:57:31 -06:00
|
|
|
int main(int argc, char *argv[]) {
|
2021-07-16 18:30:00 -06:00
|
|
|
setpriority(PRIO_PROCESS, 0, -20);
|
|
|
|
|
2021-07-02 06:01:59 -06:00
|
|
|
qInstallMessageHandler(swagLogMessageHandler);
|
2022-02-25 06:36:27 -07:00
|
|
|
initApp(argc, argv);
|
2020-08-20 13:33:32 -06:00
|
|
|
|
2021-05-06 06:39:05 -06:00
|
|
|
if (Hardware::EON()) {
|
|
|
|
QSslConfiguration ssl = QSslConfiguration::defaultConfiguration();
|
|
|
|
ssl.setCaCertificates(QSslCertificate::fromPath("/usr/etc/tls/cert.pem"));
|
|
|
|
QSslConfiguration::setDefaultConfiguration(ssl);
|
|
|
|
}
|
2021-05-02 17:28:36 -06:00
|
|
|
|
2020-08-20 09:16:44 -06:00
|
|
|
QApplication a(argc, argv);
|
|
|
|
MainWindow w;
|
2020-11-24 23:07:03 -07:00
|
|
|
setMainWindow(&w);
|
2020-11-20 05:21:18 -07:00
|
|
|
a.installEventFilter(&w);
|
2020-08-20 09:16:44 -06:00
|
|
|
return a.exec();
|
|
|
|
}
|