diff options
Diffstat (limited to 'src/ephy-main.c')
-rw-r--r-- | src/ephy-main.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/ephy-main.c b/src/ephy-main.c index a78991790..80d076bad 100644 --- a/src/ephy-main.c +++ b/src/ephy-main.c @@ -23,7 +23,6 @@ #include "config.h" #include "ephy-debug.h" -#include "ephy-embed-prefs.h" #include "ephy-file-helpers.h" #include "ephy-initial-state.h" #include "ephy-private.h" @@ -229,10 +228,6 @@ main (int argc, EphyShell *ephy_shell; int status; EphyFileHelpersFlags flags; -#ifdef HAVE_WEBKIT2 - char *pid_str; - char *disk_cache_dir; -#endif #ifdef ENABLE_NLS /* Initialize the i18n stuff */ @@ -462,28 +457,6 @@ main (int argc, gtk_window_set_default_icon_name ("web-browser"); } -#ifdef HAVE_WEBKIT2 - pid_str = g_strdup_printf ("%u", getpid ()); - g_setenv ("EPHY_WEB_EXTENSION_ID", pid_str, TRUE); - g_setenv ("EPHY_DOT_DIR", ephy_dot_dir (), TRUE); - if (private_instance || incognito_mode) - g_setenv ("EPHY_PRIVATE_PROFILE", "1", TRUE); - g_free (pid_str); - - /* Set the web extensions dir ASAP before the process is launched */ - webkit_web_context_set_web_extensions_directory (webkit_web_context_get_default (), - EPHY_WEB_EXTENSIONS_DIR); - - /* Disk Cache */ - disk_cache_dir = g_build_filename (EPHY_EMBED_SHELL_MODE_HAS_PRIVATE_PROFILE (mode) ? - ephy_dot_dir () : g_get_user_cache_dir (), - g_get_prgname (), NULL); - webkit_web_context_set_disk_cache_directory (webkit_web_context_get_default (), - disk_cache_dir); - g_free (disk_cache_dir); -#endif - - ephy_embed_prefs_init (); _ephy_shell_create_instance (mode); startup_flags = get_startup_flags (); @@ -505,7 +478,6 @@ main (int argc, notify_uninit (); ephy_initial_state_save (); - ephy_embed_prefs_shutdown (); ephy_settings_shutdown (); ephy_file_helpers_shutdown (); xmlCleanupParser (); |