From 8ed38ef4f930174bba87168abf7c913ca88eabd3 Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 24 Nov 2020 11:31:19 +0100 Subject: caja-file-operations: Let user mark trusted launcher --- libcaja-private/caja-file-operations.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libcaja-private') diff --git a/libcaja-private/caja-file-operations.c b/libcaja-private/caja-file-operations.c index e6dcdb98..b77bdd7d 100644 --- a/libcaja-private/caja-file-operations.c +++ b/libcaja-private/caja-file-operations.c @@ -65,6 +65,7 @@ #include "caja-file-utilities.h" #include "caja-file-conflict-dialog.h" #include "caja-undostack-manager.h" +#include "caja-metadata.h" /* TODO: TESTING!!! */ @@ -6694,6 +6695,12 @@ mark_desktop_file_trusted (CommonJob *common, } } g_object_unref (info); + + g_file_set_attribute_string (file, + "metadata::" CAJA_METADATA_KEY_TRUSTED_LAUNCHER, "true", + G_FILE_QUERY_INFO_NONE, + cancellable, + NULL); out: ; } -- cgit v1.2.1