diff options
-rw-r--r-- | lib/ephy-profile-utils.c | 11 | ||||
-rw-r--r-- | lib/ephy-profile-utils.h | 2 |
2 files changed, 8 insertions, 5 deletions
diff --git a/lib/ephy-profile-utils.c b/lib/ephy-profile-utils.c index a9edd7241..05367be8e 100644 --- a/lib/ephy-profile-utils.c +++ b/lib/ephy-profile-utils.c @@ -187,19 +187,22 @@ _ephy_profile_utils_query_form_auth_data (const char *uri, g_free (key_str); } -void +gboolean ephy_profile_utils_do_migration () { + gboolean ret; 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); + ret = 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); } + + return ret; } diff --git a/lib/ephy-profile-utils.h b/lib/ephy-profile-utils.h index d26fe1ca5..6a01549c7 100644 --- a/lib/ephy-profile-utils.h +++ b/lib/ephy-profile-utils.h @@ -32,7 +32,7 @@ int ephy_profile_utils_get_migration_version (void); gboolean ephy_profile_utils_set_migration_version (int version); -void ephy_profile_utils_do_migration (void); +gboolean ephy_profile_utils_do_migration (void); void _ephy_profile_utils_store_form_auth_data (const char *uri, const char *form_username, |