Gio.content_type_can_be_executable

function content_type_can_be_executable(type: String): Boolean {
    // Gjs wrapper for g_content_type_can_be_executable()
}
  

Checks if a content type can be executable. Note that for instance things like text files can be executables (i.e. scripts and batch files).

type

a content type string

Returns

true if the file type corresponds to a type that can be executable, false otherwise.