mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-07 18:06:04 +00:00
Disable Qt's integration mechanism on GTK-based DE to avoid early GTK loading
This also removes TDESKTOP_USE_GTK_FILE_DIALOG since it doesn't forces GTK dialog for anyone and there is no reason to leave it TDESKTOP_DISABLE_GTK_INTEGRATION can be also tested via action now
This commit is contained in:
@@ -130,11 +130,12 @@ bool NativeSupported(Type type = Type::ReadFile) {
|
||||
// or if QT_QPA_PLATFORMTHEME=(gtk2|gtk3)
|
||||
// or if portals is used and operation is to open folder
|
||||
// and portal doesn't support folder choosing
|
||||
return Platform::UseGtkFileDialog()
|
||||
&& (Platform::DesktopEnvironment::IsGtkBased()
|
||||
return (Platform::DesktopEnvironment::IsGtkBased()
|
||||
|| Platform::IsGtkIntegrationForced()
|
||||
|| Platform::UseXDGDesktopPortal())
|
||||
&& (!Platform::UseXDGDesktopPortal()
|
||||
&& ((!Platform::UseXDGDesktopPortal() &&
|
||||
((!Platform::InFlatpak() && !Platform::InSnap())
|
||||
|| Platform::IsGtkIntegrationForced()))
|
||||
|| (type == Type::ReadFolder && !Platform::CanOpenDirectoryWithPortal()))
|
||||
&& Platform::internal::GdkHelperLoaded()
|
||||
&& (Libs::gtk_widget_hide_on_delete != nullptr)
|
||||
|
Reference in New Issue
Block a user