You've already forked godot
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user