Merge pull request #76957 from Riteo/dbus-check
Check DBus loading status before attempting to detect its version
This commit is contained in:
commit
03053eaf19
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user