aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-05-08 02:27:05 +0800
committerXan Lopez <xan@igalia.com>2012-05-08 02:28:04 +0800
commit8c65eb746306499465f23057dbd4dea484c953aa (patch)
tree88753f699405faef7194fd9ab1aa8de9d08cccf7 /src/ephy-shell.c
parent60a504dd7ad9f4b621181994c672344fd694fbde (diff)
downloadgsoc2013-epiphany-8c65eb746306499465f23057dbd4dea484c953aa.tar
gsoc2013-epiphany-8c65eb746306499465f23057dbd4dea484c953aa.tar.gz
gsoc2013-epiphany-8c65eb746306499465f23057dbd4dea484c953aa.tar.bz2
gsoc2013-epiphany-8c65eb746306499465f23057dbd4dea484c953aa.tar.lz
gsoc2013-epiphany-8c65eb746306499465f23057dbd4dea484c953aa.tar.xz
gsoc2013-epiphany-8c65eb746306499465f23057dbd4dea484c953aa.tar.zst
gsoc2013-epiphany-8c65eb746306499465f23057dbd4dea484c953aa.zip
ephy-profile-utils: split profile migration from EphyShell
Call it directly from main, since we want it to happen before the file helpers initialization.
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 18236420f..c8f3c27a4 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -37,7 +37,6 @@
#include "ephy-lockdown.h"
#include "ephy-prefs.h"
#include "ephy-private.h"
-#include "ephy-profile-utils.h"
#include "ephy-session.h"
#include "ephy-settings.h"
#include "ephy-type-builtins.h"
@@ -264,27 +263,8 @@ ephy_shell_startup (GApplication* application)
G_APPLICATION_CLASS (ephy_shell_parent_class)->startup (application);
/* We're not remoting; start our services */
- /* Migrate profile if we are not running a private instance */
- /* TODO: we want to migrate each WebApp profile too */
mode = ephy_embed_shell_get_mode (EPHY_EMBED_SHELL (application));
- if (mode == EPHY_EMBED_SHELL_MODE_BROWSER) {
- if (ephy_profile_utils_get_migration_version () < EPHY_PROFILE_MIGRATION_VERSION) {
- GError *error = NULL;
- char *argv[1] = { "ephy-profile-migrator" };
- char *envp[1] = { "EPHY_LOG_MODULES=ephy-profile" };
-
- g_spawn_sync (NULL, argv, envp, G_SPAWN_SEARCH_PATH,
- NULL, NULL, NULL, NULL,
- NULL, &error);
-
- if (error) {
- LOG ("Failed to run migrator: %s", error->message);
- g_error_free (error);
- }
- }
- }
-
if (mode != EPHY_EMBED_SHELL_MODE_APPLICATION) {
GtkBuilder *builder;