From 7a172fff27319df51bb99337f90ced75fa419e9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Forysiuk?= Date: Mon, 21 May 2012 23:09:01 +0200 Subject: [PATCH] List all addon directories even non-existant Folders may be created after setting up monitors. --- extensions/addons.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/extensions/addons.c b/extensions/addons.c index edf5339b..c05fd855 100644 --- a/extensions/addons.c +++ b/extensions/addons.c @@ -839,10 +839,7 @@ addons_get_directories (AddonsKind kind) path = g_build_path (G_DIR_SEPARATOR_S, g_get_user_data_dir (), PACKAGE_NAME, folder_name, NULL); - if (g_access (path, X_OK) == 0) - directories = g_slist_prepend (directories, path); - else - g_free (path); + directories = g_slist_prepend (directories, path); datadirs = g_get_system_data_dirs (); while (*datadirs) -- 2.39.5