Skip to content

Commit 030cef0

Browse files
authored
lakka: notify initialize complete to systemd (#18695)
1 parent 4583df0 commit 030cef0

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Makefile.common

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@ endif
815815
ifeq ($(HAVE_LAKKA), 1)
816816
OBJ += network/drivers_wifi/connmanctl.o
817817
OBJ += misc/cpufreq/cpufreq.o
818+
LIBS += -lsystemd
818819
endif
819820

820821
ifeq ($(HAVE_WIFI), 1)

retroarch.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@
226226

227227
#ifdef HAVE_LAKKA
228228
#include "lakka.h"
229+
#include <systemd/sd-daemon.h>
229230
#endif
230231

231232
#define _PSUPP(var, name, desc) printf(" %s:\n\t\t%s: %s\n", name, desc, var ? "yes" : "no")
@@ -6144,6 +6145,9 @@ int rarch_main(int argc, char *argv[], void *data)
61446145
if (settings->uints.cloud_sync_sync_mode == CLOUD_SYNC_MODE_AUTOMATIC)
61456146
task_push_cloud_sync();
61466147
#endif
6148+
#ifdef HAVE_LAKKA
6149+
sd_notify(0, "READY=1");
6150+
#endif
61476151
#if !defined(HAVE_MAIN) || defined(HAVE_QT)
61486152
for (;;)
61496153
{

0 commit comments

Comments
 (0)