desktop-data-model r7273 - trunk/engine-dbus
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: desktop-data-model r7273 - trunk/engine-dbus
- Date: Mon, 21 Apr 2008 16:57:03 +0100 (BST)
Author: walters
Date: Mon Apr 21 15:57:03 2008
New Revision: 7273
URL: http://svn.gnome.org/viewvc/desktop-data-model?rev=7273&view=rev
Log:
#1387: Add ability to check for Mugshot cookie, patch from Owen
Modified:
trunk/engine-dbus/main.c
Modified: trunk/engine-dbus/main.c
==============================================================================
--- trunk/engine-dbus/main.c (original)
+++ trunk/engine-dbus/main.c Mon Apr 21 15:57:03 2008
@@ -1,5 +1,6 @@
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
#include <config.h>
+#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -8,6 +9,7 @@
#include "main.h"
#include <hippo/hippo-group.h>
#include "hippo-platform-impl.h"
+#include "hippo-cookies-linux.h"
#include "hippo-dbus-server.h"
#include "hippo-im.h"
#include "hippo-application-monitor.h"
@@ -736,11 +738,19 @@
char *stacker_server;
char *desktop_server;
GError *error;
+ int i;
g_thread_init(NULL);
-
+
g_set_application_name(_("Desktop Data Engine"));
+ for (i = 1; i < argc; i++) {
+ if (strcmp(argv[i], "--check-if-mugshot-cookie") == 0) {
+ GSList *cookies = hippo_load_cookies("mugshot.org", 80, "auth");
+ exit (cookies != NULL ? 0 : 1);
+ }
+ }
+
gtk_init(&argc, &argv);
#if 0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]