summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2018-06-13 17:07:04 +0200
committerMichael Catanzaro <mcatanzaro@igalia.com>2018-11-27 04:24:45 -0600
commit0ef8ad5b5ce0df33a4f2dd5df1b6002d8bb34e9f (patch)
tree09750c8ed1f6106411c71aceb8862d917dfa8f01
parent76aaea7ac30668e920e3f162722b922db892cef9 (diff)
downloadepiphany-0ef8ad5b5ce0df33a4f2dd5df1b6002d8bb34e9f.tar.gz
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.
-rw-r--r--lib/ephy-web-app-utils.c2
1 files changed, 1 insertions, 1 deletions
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;