File ConsoleKit-libexecdir.patch of Package ConsoleKit

--- src/ck-manager.c
+++ src/ck-manager.c
@@ -1357,7 +1357,7 @@
         log_system_restart_event (manager);
 
         error = NULL;
-        res = g_spawn_command_line_async (LIBDIR "/ConsoleKit/scripts/ck-system-restart",
+        res = g_spawn_command_line_async (PREFIX "/lib/ConsoleKit/scripts/ck-system-restart",
                                           &error);
         if (! res) {
                 GError *new_error;
@@ -1415,7 +1415,7 @@
         log_system_stop_event (manager);
 
         error = NULL;
-        res = g_spawn_command_line_async (LIBDIR "/ConsoleKit/scripts/ck-system-stop",
+        res = g_spawn_command_line_async ( PREFIX "/lib/ConsoleKit/scripts/ck-system-stop",
                                           &error);
         if (! res) {
                 GError *new_error;
--- src/ck-session.c
+++ src/ck-session.c
@@ -1242,7 +1242,7 @@
         extra_env[n++] = NULL;
 
         ck_run_programs (SYSCONFDIR "/ConsoleKit/run-session.d", action, extra_env);
-        ck_run_programs (LIBDIR "/ConsoleKit/run-session.d", action, extra_env);
+        ck_run_programs (PREFIX "/lib/ConsoleKit/run-session.d", action, extra_env);
 
         for (n = 0; extra_env[n] != NULL; n++) {
                 g_free (extra_env[n]);
openSUSE Build Service is sponsored by