g_file_set_trusted


Description:


[ Version ( since = "4.17" ) ]
public bool g_file_set_trusted (File file, bool is_trusted, Cancellable? cancellable = null) throws Error

Sets the "safety flag" on if is_trusted.

Safety flag is a new concept introduced in XFCE 4.17. It is basically an additional execution flag stored in GVFS-metadata. Unlike the execution flag (+x), it is safe to assume that this flag did not come from foreign location (for example, by downloading an tar archive) and is set by user.

The checksum of the file is stored, and would be considered "on" only if checksum matches with the file on execution.

Parameters:

file

a File.

is_trusted

TRUE if trusted, FALSE if not

cancellable

optional Cancellable object, null to ignore.

Returns:

true on success, false on error.


Namespace: Xfce