mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
fix: support high DPI screen
This commit is contained in:
parent
c2f7576d10
commit
b99c5a8391
@ -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
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user