mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
19 lines
435 B
C++
19 lines
435 B
C++
#include "singleapplication.h"
|
|
#include "gpclient.h"
|
|
#include "enhancedwebview.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QString port = QString::fromLocal8Bit(qgetenv(ENV_CDP_PORT));
|
|
if (port == "") {
|
|
qputenv(ENV_CDP_PORT, "12315");
|
|
}
|
|
SingleApplication app(argc, argv);
|
|
GPClient w;
|
|
w.show();
|
|
|
|
QObject::connect(&app, &SingleApplication::instanceStarted, &w, &GPClient::raise);
|
|
|
|
return app.exec();
|
|
}
|