From 13f99ef38c01d5c2b34cd870130c4ac77dc74af2 Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Fri, 15 Apr 2016 23:03:17 -0500 Subject: [PATCH] use default web context --- src/lightdm-webkit2-greeter.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/lightdm-webkit2-greeter.c b/src/lightdm-webkit2-greeter.c index f8af328..4472c59 100644 --- a/src/lightdm-webkit2-greeter.c +++ b/src/lightdm-webkit2-greeter.c @@ -230,16 +230,10 @@ main(int argc, char **argv) { GTK_STYLE_PROVIDER(css_provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); - /* Create a website data manager object to configure our cache and data dirs */ - data_manager = webkit_website_data_manager_new( - "base-cache-directory", g_strconcat(g_get_user_cache_dir(), "/", g_get_prgname(), NULL), - "base-data-directory", g_strconcat(g_get_user_data_dir(), "/", g_get_prgname(), NULL) - ); - /* Register and connect handler that will set the web extensions directory * so webkit can find our extension. */ - context = webkit_web_context_new_with_website_data_manager(data_manager); + context = webkit_web_context_get_default(); g_signal_connect(context, "initialize-web-extensions", G_CALLBACK(initialize_web_extensions_cb), NULL);