Since changing the ibus portal check, it is not compatible with snap anymore

This commit is contained in:
Ilya Fedin 2020-11-12 19:10:30 +04:00 committed by John Preston
parent 21133abe13
commit e64f6f7266
1 changed files with 4 additions and 1 deletions

View File

@ -1158,7 +1158,10 @@ void start() {
// Since tdesktop is distributed in static binary form,
// it makes sense to use ibus portal whenever it present
// to ensure compatibility with the maximum range of distributions.
if (IsIBusPortalPresent()) {
if (AreQtPluginsBundled()
&& !InFlatpak()
&& !InSnap()
&& IsIBusPortalPresent()) {
LOG(("IBus portal is present! Using it."));
qputenv("IBUS_USE_PORTAL", "1");
}