diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index 43c8c684d4..ab1da74c64 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -712,11 +712,12 @@ void start() { qputenv("QT_WAYLAND_DECORATION", "material"); } - if(IsStaticBinary() + if((IsStaticBinary() || InAppImage() || InSnap() || UseGtkFileDialog() - || IsQtPluginsBundled()) { + || IsQtPluginsBundled()) + && !InFlatpak()) { LOG(("Checking for XDG Desktop Portal...")); // this can give us a chance to use a proper file dialog for current session if (IsXDGDesktopPortalPresent()) {