diff --git a/GPClient/com.yuezk.qt.gpclient.desktop.in b/GPClient/com.yuezk.qt.gpclient.desktop.in index 803e7c1..f15cc09 100644 --- a/GPClient/com.yuezk.qt.gpclient.desktop.in +++ b/GPClient/com.yuezk.qt.gpclient.desktop.in @@ -6,7 +6,7 @@ Name=GlobalProtect VPN Comment=A GlobalProtect VPN client (GUI) for Linux based on OpenConnect and built with Qt5, supports SAML auth mode. GenericName=GlobalProtect VPN client, supports SAML auth mode Categories=Network;Dialup; -Exec=@CMAKE_INSTALL_PREFIX@/bin/gpclient +Exec=env QT_AUTO_SCREEN_SCALE_FACTOR=1 @CMAKE_INSTALL_PREFIX@/bin/gpclient Icon=com.yuezk.qt.gpclient Keywords=GlobalProtect;Openconnect;SAML;connection;VPN; StartupWMClass=gpclient diff --git a/GPClient/main.cpp b/GPClient/main.cpp index 68eeb84..92b1391 100644 --- a/GPClient/main.cpp +++ b/GPClient/main.cpp @@ -32,7 +32,7 @@ int main(int argc, char *argv[]) } if (hidpiSupport.isEmpty()) { - qputenv(QT_AUTO_SCREEN_SCALE_FACTOR, "true"); + qputenv(QT_AUTO_SCREEN_SCALE_FACTOR, "1"); } SingleApplication app(argc, argv);