From 0ef8ad5b5ce0df33a4f2dd5df1b6002d8bb34e9f Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Wed, 13 Jun 2018 17:07:04 +0200 Subject: 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; -- cgit v1.2.1