From 71d5e96f6539f7985081ba6b6f482423ac694f9d Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Sun, 16 Feb 2020 16:43:47 +0800 Subject: [PATCH] Add desktop file --- GPClient/GPClient.pro | 8 ++++++++ GPClient/com.yuezk.qt.gpclient.desktop | 10 ++++++++++ GPClient/gpclient.ui | 3 +++ GPClient/main.cpp | 1 - 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 GPClient/com.yuezk.qt.gpclient.desktop 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();