diff --git a/GPClient/GPClient.pro b/GPClient/GPClient.pro index 843eb68..586d76a 100644 --- a/GPClient/GPClient.pro +++ b/GPClient/GPClient.pro @@ -42,3 +42,11 @@ DBUS_INTERFACES += ../GPService/gpservice.xml # Default rules for deployment. target.path = /usr/local/bin INSTALLS += target + +DISTFILES += \ + com.yuezk.qt.gpclient.desktop + +desktop_entry.path = /usr/share/applications/ +desktop_entry.files = com.yuezk.qt.gpclient.desktop + +INSTALLS += desktop_entry diff --git a/GPClient/com.yuezk.qt.gpclient.desktop b/GPClient/com.yuezk.qt.gpclient.desktop new file mode 100644 index 0000000..6972343 --- /dev/null +++ b/GPClient/com.yuezk.qt.gpclient.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] + +Type=Application +Version=1.0.0 +Name=GlobalProtect VPN +Comment=GlobalProtect VPN client, supports SAML auth mode +Exec=env QTWEBENGINE_REMOTE_DEBUGGING=12315 /usr/local/bin/gpclient +Icon= +Categories=Network;VPN;Utility;Qt; +Keywords=GlobalProtect;Openconnect;SAML; diff --git a/GPClient/gpclient.ui b/GPClient/gpclient.ui index 2205c55..afabdfb 100644 --- a/GPClient/gpclient.ui +++ b/GPClient/gpclient.ui @@ -68,6 +68,9 @@ vpn.microstrategy.com + + Please enter your portal address + diff --git a/GPClient/main.cpp b/GPClient/main.cpp index a6b6f7c..0d66edf 100644 --- a/GPClient/main.cpp +++ b/GPClient/main.cpp @@ -3,7 +3,6 @@ int main(int argc, char *argv[]) { - qputenv(ENV_CDP_PORT, "12315"); SingleApplication app(argc, argv); GPClient w; w.show();