fix: support high DPI screen

This commit is contained in:
Kevin Yue 2022-05-21 11:43:17 +08:00
parent c2f7576d10
commit b99c5a8391
2 changed files with 2 additions and 2 deletions

View File

@ -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. 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 GenericName=GlobalProtect VPN client, supports SAML auth mode
Categories=Network;Dialup; 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 Icon=com.yuezk.qt.gpclient
Keywords=GlobalProtect;Openconnect;SAML;connection;VPN; Keywords=GlobalProtect;Openconnect;SAML;connection;VPN;
StartupWMClass=gpclient StartupWMClass=gpclient

View File

@ -32,7 +32,7 @@ int main(int argc, char *argv[])
} }
if (hidpiSupport.isEmpty()) { if (hidpiSupport.isEmpty()) {
qputenv(QT_AUTO_SCREEN_SCALE_FACTOR, "true"); qputenv(QT_AUTO_SCREEN_SCALE_FACTOR, "1");
} }
SingleApplication app(argc, argv); SingleApplication app(argc, argv);