mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[Linux] Load dbus libraries dynamically.
This commit is contained in:
parent
9869182e8a
commit
f973069afb
6 changed files with 3626 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue