2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-09 02:46:34 +00:00

Expose gtk integration to lib_base

This commit is contained in:
Ilya Fedin
2021-02-19 04:37:06 +04:00
committed by John Preston
parent a9c08552c8
commit f1ee5b5704
14 changed files with 114 additions and 550 deletions

View File

@@ -642,7 +642,7 @@ bool Supported() {
}
bool Use(Type type) {
return IsGtkIntegrationForced()
return qEnvironmentVariableIsSet("TDESKTOP_USE_GTK_FILE_DIALOG")
|| DesktopEnvironment::IsGtkBased()
// use as a fallback for portal dialog
|| UseXDGDesktopPortal();