aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-08-23 22:41:43 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-08-23 22:53:42 +0800
commitffde0e37588f47be08eea655a76f0813457889d3 (patch)
tree7f156141f4a645a1c054f96ffbcc1cd0c5e9fc78 /shell/main.c
parent0221ae1e0e879d47712cc2ba1913da152ef6e923 (diff)
downloadgsoc2013-evolution-ffde0e37588f47be08eea655a76f0813457889d3.tar.gz
gsoc2013-evolution-ffde0e37588f47be08eea655a76f0813457889d3.tar.zst
gsoc2013-evolution-ffde0e37588f47be08eea655a76f0813457889d3.zip
Stop killing evolution-data-server services.
That includes startup and --force-shutdown.
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c69
1 files changed, 0 insertions, 69 deletions
diff --git a/shell/main.c b/shell/main.c
index f27961dbd2..43edb73606 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -57,17 +57,12 @@
#include <glib/gi18n.h>
-#include <bonobo/bonobo-exception.h>
-
-#include <bonobo-activation/bonobo-activation.h>
-
#include <libedataserver/e-categories.h>
#include <libedataserverui/e-passwords.h>
#include <glade/glade.h>
#include "e-config-upgrade.h"
-#include "Evolution-DataServer.h"
#include <misc/e-cursors.h>
#include "e-util/e-error.h"
@@ -112,66 +107,6 @@ static gchar **remaining_args;
/* Defined in <e-shell.h> */
extern EShell *default_shell;
-#ifdef KILL_PROCESS_CMD
-
-static void
-kill_dataserver (void)
-{
- g_message ("Killing old version of evolution-data-server...");
-
- system (KILL_PROCESS_CMD " -9 lt-evolution-data-server 2> /dev/null");
- system (KILL_PROCESS_CMD " -9 evolution-data-server-1.0 2> /dev/null");
- system (KILL_PROCESS_CMD " -9 evolution-data-server-1.2 2> /dev/null");
- system (KILL_PROCESS_CMD " -9 evolution-data-server-1.4 2> /dev/null");
- system (KILL_PROCESS_CMD " -9 evolution-data-server-1.6 2> /dev/null");
- system (KILL_PROCESS_CMD " -9 evolution-data-server-1.8 2> /dev/null");
- system (KILL_PROCESS_CMD " -9 evolution-data-server-1.10 2> /dev/null");
- system (KILL_PROCESS_CMD " -9 evolution-data-server-1.12 2> /dev/null");
-
- system (KILL_PROCESS_CMD " -9 lt-evolution-alarm-notify 2> /dev/null");
- system (KILL_PROCESS_CMD " -9 evolution-alarm-notify 2> /dev/null");
-}
-
-static void
-kill_old_dataserver (void)
-{
- GNOME_Evolution_DataServer_InterfaceCheck iface;
- CORBA_Environment ev;
- CORBA_char *version;
-
- CORBA_exception_init (&ev);
-
- /* FIXME Should we really kill it off? We also shouldn't hard code the version */
- iface = bonobo_activation_activate_from_id (
- (Bonobo_ActivationID) "OAFIID:GNOME_Evolution_DataServer_InterfaceCheck", 0, NULL, &ev);
- if (BONOBO_EX (&ev) || iface == CORBA_OBJECT_NIL) {
- kill_dataserver ();
- CORBA_exception_free (&ev);
- return;
- }
-
- version = GNOME_Evolution_DataServer_InterfaceCheck__get_interfaceVersion (iface, &ev);
- if (BONOBO_EX (&ev)) {
- kill_dataserver ();
- CORBA_Object_release (iface, &ev);
- CORBA_exception_free (&ev);
- return;
- }
-
- if (strcmp (version, DATASERVER_VERSION) != 0) {
- CORBA_free (version);
- kill_dataserver ();
- CORBA_Object_release (iface, &ev);
- CORBA_exception_free (&ev);
- return;
- }
-
- CORBA_free (version);
- CORBA_Object_release (iface, &ev);
- CORBA_exception_free (&ev);
-}
-#endif
-
static void
categories_icon_theme_hack (void)
{
@@ -308,10 +243,6 @@ idle_cb (gchar **uris)
{
EShell *shell;
-#ifdef KILL_PROCESS_CMD
- kill_old_dataserver ();
-#endif
-
shell = e_shell_get_default ();
/* These calls do the right thing when another Evolution