summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-11-24 11:31:19 +0100
committerraveit65 <[email protected]>2022-07-21 19:33:49 +0200
commit6fb2330458ab3db992c724a58e545aaf517d6679 (patch)
treec65eb20e25cd6a176a2b607b3821fbfe6802f5c9 /libcaja-private
parentdafa898655727aeae05da2fcd1905933306151f8 (diff)
downloadcaja-6fb2330458ab3db992c724a58e545aaf517d6679.tar.bz2
caja-6fb2330458ab3db992c724a58e545aaf517d6679.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 dbf5734c..ff177808 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:
;
}