Yeah I know we do not support the *kit stuffs, no need to spam syslog with

useless messages.
I will work on a replacement tomorrow (for reboot/shutdown handling).
This commit is contained in:
ajacoutot 2009-10-14 18:03:01 +00:00
parent 4473acaa8d
commit 95aa66b3aa
2 changed files with 77 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.87 2009/10/14 16:16:17 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.88 2009/10/14 18:03:01 ajacoutot Exp $
COMMENT= GNOME session
GNOME_PROJECT= gnome-session
GNOME_VERSION= 2.28.0
PKGNAME= ${DISTNAME}p0
PKGNAME= ${DISTNAME}p1
CATEGORIES= x11

View File

@ -0,0 +1,75 @@
$OpenBSD: patch-gnome-session_gsm-consolekit_c,v 1.1 2009/10/14 18:03:01 ajacoutot Exp $
--- gnome-session/gsm-consolekit.c.orig Wed Oct 14 18:58:53 2009
+++ gnome-session/gsm-consolekit.c Wed Oct 14 18:59:45 2009
@@ -299,8 +299,6 @@ gsm_consolekit_init (GsmConsolekit *manager)
error = NULL;
if (!gsm_consolekit_ensure_ck_connection (manager, &error)) {
- g_warning ("Could not connect to ConsoleKit: %s",
- error->message);
g_error_free (error);
}
}
@@ -424,8 +422,6 @@ gsm_consolekit_attempt_restart (GsmConsolekit *manager
error = NULL;
if (!gsm_consolekit_ensure_ck_connection (manager, &error)) {
- g_warning ("Could not connect to ConsoleKit: %s",
- error->message);
emit_restart_complete (manager, error);
g_error_free (error);
return;
@@ -456,8 +452,6 @@ gsm_consolekit_attempt_stop (GsmConsolekit *manager)
error = NULL;
if (!gsm_consolekit_ensure_ck_connection (manager, &error)) {
- g_warning ("Could not connect to ConsoleKit: %s",
- error->message);
emit_stop_complete (manager, error);
g_error_free (error);
return;
@@ -622,8 +616,6 @@ gsm_consolekit_set_session_idle (GsmConsolekit *manage
error = NULL;
if (!gsm_consolekit_ensure_ck_connection (manager, &error)) {
- g_warning ("Could not connect to ConsoleKit: %s",
- error->message);
g_error_free (error);
return;
}
@@ -729,8 +721,6 @@ gsm_consolekit_can_switch_user (GsmConsolekit *manager
error = NULL;
if (!gsm_consolekit_ensure_ck_connection (manager, &error)) {
- g_warning ("Could not connect to ConsoleKit: %s",
- error->message);
g_error_free (error);
return FALSE;
}
@@ -778,8 +768,6 @@ gsm_consolekit_can_restart (GsmConsolekit *manager)
error = NULL;
if (!gsm_consolekit_ensure_ck_connection (manager, &error)) {
- g_warning ("Could not connect to ConsoleKit: %s",
- error->message);
g_error_free (error);
return FALSE;
}
@@ -805,8 +793,6 @@ gsm_consolekit_can_stop (GsmConsolekit *manager)
error = NULL;
if (!gsm_consolekit_ensure_ck_connection (manager, &error)) {
- g_warning ("Could not connect to ConsoleKit: %s",
- error->message);
g_error_free (error);
return FALSE;
}
@@ -840,8 +826,6 @@ gsm_consolekit_get_current_session_type (GsmConsolekit
gerror = NULL;
if (!gsm_consolekit_ensure_ck_connection (manager, &gerror)) {
- g_warning ("Could not connect to ConsoleKit: %s",
- gerror->message);
g_error_free (gerror);
goto out;
}