mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 00:25:17 +00:00
Catch ListActivatableNames errors
This commit is contained in:
@@ -371,14 +371,6 @@ bool InSnap() {
|
||||
return Result;
|
||||
}
|
||||
|
||||
bool AreQtPluginsBundled() {
|
||||
#if !defined DESKTOP_APP_USE_PACKAGED || defined DESKTOP_APP_USE_PACKAGED_LAZY
|
||||
return true;
|
||||
#else // !DESKTOP_APP_USE_PACKAGED || DESKTOP_APP_USE_PACKAGED_LAZY
|
||||
return false;
|
||||
#endif // DESKTOP_APP_USE_PACKAGED && !DESKTOP_APP_USE_PACKAGED_LAZY
|
||||
}
|
||||
|
||||
QString AppRuntimeDirectory() {
|
||||
static const auto Result = [&] {
|
||||
auto runtimeDir = QStandardPaths::writableLocation(
|
||||
@@ -659,10 +651,7 @@ 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 (AreQtPluginsBundled()
|
||||
&& !InFlatpak()
|
||||
&& !InSnap()
|
||||
&& IsIBusPortalPresent()) {
|
||||
if (IsIBusPortalPresent()) {
|
||||
LOG(("IBus portal is present! Using it."));
|
||||
qputenv("IBUS_USE_PORTAL", "1");
|
||||
}
|
||||
|
Reference in New Issue
Block a user