Merge pull request #76957 from Riteo/dbus-check

Check DBus loading status before attempting to detect its version
This commit is contained in:
Rémi Verschelde 2023-05-12 10:04:33 +02:00
commit 03053eaf19
No known key found for this signature in database
GPG Key ID: C3336907360768E1
2 changed files with 10 additions and 0 deletions

View File

@ -138,6 +138,11 @@ FreeDesktopPortalDesktop::FreeDesktopPortalDesktop() {
#else
unsupported = false;
#endif
if (unsupported) {
return;
}
bool ver_ok = false;
int version_major = 0;
int version_minor = 0;

View File

@ -141,6 +141,11 @@ FreeDesktopScreenSaver::FreeDesktopScreenSaver() {
#else
unsupported = false;
#endif
if (unsupported) {
return;
}
bool ver_ok = false;
int version_major = 0;
int version_minor = 0;