[epiphany/gnome-3-28] web-apps: fix deleting of web app desktop file symlink



commit 0ef8ad5b5ce0df33a4f2dd5df1b6002d8bb34e9f
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Wed Jun 13 17:07:04 2018 +0200

    web-apps: fix deleting of web app desktop file symlink
    
    We were checking that the file is a directory instead of that is a
    symlink.

 lib/ephy-web-app-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c
index 0295b7345..d0f93a2ef 100644
--- a/lib/ephy-web-app-utils.c
+++ b/lib/ephy-web-app-utils.c
@@ -153,7 +153,7 @@ ephy_web_application_delete (const char *name)
     goto out;
 
   desktop_path = g_build_filename (g_get_user_data_dir (), "applications", desktop_file, NULL);
-  if (g_file_test (desktop_path, G_FILE_TEST_IS_DIR)) {
+  if (g_file_test (desktop_path, G_FILE_TEST_IS_SYMLINK)) {
     launcher = g_file_new_for_path (desktop_path);
     if (!g_file_delete (launcher, NULL, NULL))
       goto out;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]