mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
Initial commit
This commit is contained in:
19
GPService/main.cpp
Normal file
19
GPService/main.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#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();
|
||||
}
|
Reference in New Issue
Block a user