summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/caja-application.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/src/caja-application.c b/src/caja-application.c
index cd7595fe..b0ef0e42 100644
--- a/src/caja-application.c
+++ b/src/caja-application.c
@@ -765,63 +765,6 @@ automount_all_volumes_idle_cb (gpointer data)
}
static void
-mark_desktop_files_trusted (void)
-{
- char *do_once_file;
- GFile *f, *c;
- GFileEnumerator *e;
- GFileInfo *info;
- const char *name;
- int fd;
-
- do_once_file = g_build_filename (g_get_user_data_dir (),
- ".converted-launchers", NULL);
-
- if (g_file_test (do_once_file, G_FILE_TEST_EXISTS))
- {
- goto out;
- }
-
- f = caja_get_desktop_location ();
- e = g_file_enumerate_children (f,
- G_FILE_ATTRIBUTE_STANDARD_TYPE ","
- G_FILE_ATTRIBUTE_STANDARD_NAME ","
- G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE
- ,
- G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
- NULL, NULL);
- if (e == NULL)
- {
- goto out2;
- }
-
- while ((info = g_file_enumerator_next_file (e, NULL, NULL)) != NULL)
- {
- name = g_file_info_get_name (info);
-
- if (g_str_has_suffix (name, ".desktop") &&
- !g_file_info_get_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE))
- {
- c = g_file_get_child (f, name);
- caja_file_mark_desktop_file_trusted (c,
- NULL, FALSE,
- NULL, NULL);
- g_object_unref (c);
- }
- g_object_unref (info);
- }
-
- g_object_unref (e);
-out2:
- fd = g_creat (do_once_file, 0666);
- close (fd);
-
- g_object_unref (f);
-out:
- g_free (do_once_file);
-}
-
-static void
check_volume_queue (CajaApplication *application)
{
GList *l, *next;