aboutsummaryrefslogtreecommitdiffstats
path: root/s2u.c
diff options
context:
space:
mode:
Diffstat (limited to 's2u.c')
-rw-r--r--s2u.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/s2u.c b/s2u.c
index 82a0f6c..547b8f9 100644
--- a/s2u.c
+++ b/s2u.c
@@ -50,6 +50,7 @@ static const char compile_id[] = "$Compile: " __FILE__ " " __DATE__ " " __TIME__
#include <fcntl.h>
#include <errno.h>
#include <signal.h>
+#include <gdk/gdk.h>
#include <dbus/dbus.h>
#include <dbus/dbus-glib.h>
@@ -299,7 +300,7 @@ main (int argc, char *argv[])
}
- g_type_init ();
+ gdk_init(&argc, &argv);
loop = g_main_loop_new (NULL, FALSE);
@@ -307,6 +308,7 @@ main (int argc, char *argv[])
service_dbus_init ();
/* run the main loop and serve clients */
+
g_main_loop_run (loop);
return 0;