1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

[Linux] Load dbus libraries dynamically.

This commit is contained in:
bruvzg
2022-07-29 11:19:06 +03:00
parent 9869182e8a
commit f973069afb
6 changed files with 3626 additions and 4 deletions

View File

@@ -34,7 +34,7 @@
#include "core/config/project_settings.h"
#include <dbus/dbus.h>
#include "dbus-so_wrap.h"
#define BUS_OBJECT_NAME "org.freedesktop.ScreenSaver"
#define BUS_OBJECT_PATH "/org/freedesktop/ScreenSaver"
@@ -126,4 +126,13 @@ void FreeDesktopScreenSaver::uninhibit() {
dbus_connection_unref(bus);
}
FreeDesktopScreenSaver::FreeDesktopScreenSaver() {
#ifdef DEBUG_ENABLED
int dylibloader_verbose = 1;
#else
int dylibloader_verbose = 0;
#endif
unsupported = (initialize_dbus(dylibloader_verbose) != 0);
}
#endif // DBUS_ENABLED