GlobalProtect-openconnect/GPService/main.cpp
2020-02-15 16:26:32 +08:00

20 lines
400 B
C++

#include <QCoreApplication>
#include <QtDBus>
#include "gpservice.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
if (!QDBusConnection::systemBus().isConnected()) {
qWarning("Cannot connect to the D-Bus session bus.\n"
"Please check your system settings and try again.\n");
return 1;
}
new GPService;
return a.exec();
}