From 3de7945065fc0d039c9270b5c97fc4a0731c98ed Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Sat, 26 May 2012 16:59:08 -0500 Subject: e-web-app-utils: warn when app dir already exists https://bugzilla.gnome.org/show_bug.cgi?id=673271 --- lib/ephy-web-app-utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c index 78cbcc008..51f3599f7 100644 --- a/lib/ephy-web-app-utils.c +++ b/lib/ephy-web-app-utils.c @@ -316,8 +316,10 @@ ephy_web_application_create (const char *address, const char *name, GdkPixbuf *i /* If there's already a WebApp profile for the contents of this * view, do nothing. */ profile_dir = ephy_web_application_get_profile_directory (name); - if (g_file_test (profile_dir, G_FILE_TEST_IS_DIR)) + if (g_file_test (profile_dir, G_FILE_TEST_IS_DIR)) { + LOG ("Profile directory %s already exists", profile_dir); goto out; + } /* Create the profile directory, populate it. */ if (g_mkdir (profile_dir, 488) == -1) { -- cgit v1.2.3