mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
19 lines
407 B
C++
19 lines
407 B
C++
#include <QtDBus>
|
|
#include "gpservice.h"
|
|
#include "singleapplication.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
SingleApplication app(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 app.exec();
|
|
}
|