Commit 0ef8ad5b authored by Carlos Garcia Campos's avatar Carlos Garcia Campos Committed by Michael Catanzaro

web-apps: fix deleting of web app desktop file symlink

We were checking that the file is a directory instead of that is a
parent 76aaea7a
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment