summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-11-24 11:31:19 +0100
committerVictor Kareh <[email protected]>2020-12-11 13:18:31 -0500
commit8ed38ef4f930174bba87168abf7c913ca88eabd3 (patch)
tree91ad5c5a6fcec189ab5f521dd131f8afcdbbc65f /libcaja-private
parent7ffadcb35f4b3758f36b8337baba337a74d62c36 (diff)
downloadcaja-8ed38ef4f930174bba87168abf7c913ca88eabd3.tar.bz2
caja-8ed38ef4f930174bba87168abf7c913ca88eabd3.tar.xz
caja-file-operations: Let user mark trusted launcher
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-file-operations.c7
1 files changed, 7 insertions, 0 deletions
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:
;
}