diff options
author | rbuj <[email protected]> | 2020-11-24 10:45:09 +0100 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2020-12-11 13:18:31 -0500 |
commit | 7ffadcb35f4b3758f36b8337baba337a74d62c36 (patch) | |
tree | 40627f778b519a71d12187275b207ff1618a5793 /libcaja-private/caja-directory-async.c | |
parent | 7f9200cbdd5678a39262321538813f1963b807cb (diff) | |
download | caja-7ffadcb35f4b3758f36b8337baba337a74d62c36.tar.bz2 caja-7ffadcb35f4b3758f36b8337baba337a74d62c36.tar.xz |
caja-directory-async: trust marked launchers
gio set PATH "metadata::caja-trusted-launcher" true
Diffstat (limited to 'libcaja-private/caja-directory-async.c')
-rw-r--r-- | libcaja-private/caja-directory-async.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libcaja-private/caja-directory-async.c b/libcaja-private/caja-directory-async.c index 874667d3..5a093a5d 100644 --- a/libcaja-private/caja-directory-async.c +++ b/libcaja-private/caja-directory-async.c @@ -35,6 +35,7 @@ #include "caja-file-attributes.h" #include "caja-file-private.h" #include "caja-file-utilities.h" +#include "caja-metadata.h" #include "caja-signaller.h" #include "caja-global-preferences.h" #include "caja-link.h" @@ -3871,6 +3872,13 @@ is_link_trusted (CajaFile *file, is_trusted_system_desktop_file (location) || caja_is_in_desktop_dir (location); + if (!res) + { + res = caja_file_get_boolean_metadata (file, + CAJA_METADATA_KEY_TRUSTED_LAUNCHER, + FALSE); + } + g_object_unref (location); } |