mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 16:05:57 +00:00
Never use custom code for portal detecting in flatpak
This commit is contained in:
@@ -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()) {
|
||||||
|
Reference in New Issue
Block a user