Never use custom code for portal detecting in flatpak

This commit is contained in:
Ilya Fedin 2020-06-03 00:25:43 +04:00 committed by John Preston
parent f1e75d809a
commit 0165e31ca7
1 changed files with 3 additions and 2 deletions

View File

@ -712,11 +712,12 @@ void start() {
qputenv("QT_WAYLAND_DECORATION", "material"); qputenv("QT_WAYLAND_DECORATION", "material");
} }
if(IsStaticBinary() if((IsStaticBinary()
|| InAppImage() || InAppImage()
|| InSnap() || InSnap()
|| UseGtkFileDialog() || UseGtkFileDialog()
|| IsQtPluginsBundled()) { || IsQtPluginsBundled())
&& !InFlatpak()) {
LOG(("Checking for XDG Desktop Portal...")); LOG(("Checking for XDG Desktop Portal..."));
// this can give us a chance to use a proper file dialog for current session // this can give us a chance to use a proper file dialog for current session
if (IsXDGDesktopPortalPresent()) { if (IsXDGDesktopPortalPresent()) {