- public void append_quoted (StringBuilder string, string unquoted)
- public string create_shared_thumbnail_path (string uri, string size)
Creates the shared thumbnail path for the file that corresponds to the
given uri and size.
- public string expand_desktop_entry_field_codes (string command, SList<string> uri_list, string icon, string name, string uri, bool requires_terminal)
Expands field codes in command according to Freedesktop.
- public string expand_variables (string command, string envp)
Expands shell like environment variables and tilde (~/ and ~user/ are
both supported) in command.
- public string? g_file_create_checksum (File file, Cancellable? cancellable = null) throws Error
Generates an SHA-256 hash of the file.
- public bool g_file_is_trusted (File file, Cancellable? cancellable = null) throws Error
Compares the checksum stored in safety flag with the actual file.
- public bool g_file_metadata_is_supported (File file)
Checks if GVFS-metadata is available for the file
provided.
- public bool g_file_set_trusted (File file, bool is_trusted, Cancellable? cancellable = null) throws Error
Sets the "safety flag" on if is_trusted.
- public void g_string_append_quoted (StringBuilder string, string unquoted)
Quotes a string unquoted and appends to an existing
StringBuilder string.
- public string get_dir_localized (string directory)
- public string get_dir_localized_r (string buffer, size_t length, string directory)
- public string get_file_localized (string filename)
Checks if theres a version of filename which is localized
to the current locale.
- public string get_file_localized_r (string buffer, size_t length, string filename)
Similar in functionality to
get_file_localized, but stores the result in buffer instead of
allocating a new buffer.
- public unowned string get_homedir ()
Similar to
get_home_dir in functionality but will never return NULL.
- public unowned string get_license_text (LicenseTextType license_type)
Returns the text of the software license specified in the
license_type translated to the current language.
- public string get_path_localized (string dst, size_t size, string paths, string filename, FileTest test)
paths is a ':'-separated list of pathnames, with:
- public unowned string get_userdir ()
Safe way to retrieve the path to the user's ".
- public string gethostname ()
Portable way to query the hostname of the node running the process.
- public uint locale_match (string locale1, string locale2)
The locale is of the general form LANG_COUNTRY.
- public bool mkdirhier (string whole_path, ulong mode) throws Error
Creates the specified directory whole_path, but unlike
the mkdir function from the standard C library, if any of the parent directories of the whole_path do not
exists, they are created as well.
- public bool posix_signal_handler_init () throws Error
Initializes the POSIX signal handler system.
- public void posix_signal_handler_restore_handler (int @signal)
Restores the default handler for signal.
- public bool posix_signal_handler_set_handler (int @signal, PosixSignalHandler handler) throws Error
Sets handler to be called whenever signal is
caught by the application.
- public void posix_signal_handler_shutdown ()
Frees all memory associated with the POSIX signal handling system and
restores all default signal handlers.
- public Rc rc_config_open (ResourceType type, string resource, bool readonly)
If readonly is true
parsing is generally faster, because only untranslated entries and entries that match the current locale will be loaded.
- public Rc rc_simple_open (string filename, bool readonly)
Parses the resource config file specified by filename.
- public string[] resource_dirs (ResourceType type)
Queries the list of possible directories for the specified type
.
- public string resource_lookup (ResourceType type, string filename)
Looks for a resource of the specified type whose relative
path matches filename.
- public string[] resource_lookup_all (ResourceType type, string filename)
Similar to
resource_lookup, but returns all resource of the specified type, that whose name is filename.
- public string[] resource_match (ResourceType type, string pattern, bool unique)
Tries to find all resources with the specified type.
- public string[] resource_match_custom (ResourceType type, bool unique, MatchFunc func)
Yet to be implemented!
- public void resource_pop_path (ResourceType type)
- public void resource_push_path (ResourceType type, string path)
Appends path to the search path list for type
.
- public string resource_save_location (ResourceType type, string relpath, bool create)
If relpath contains a trailing slash ('/') character,
resource_save_location finds the directory to save files into for the given type in the user's home
directory.
- public string? str_replace (string str, string pattern, string replacement)
Searches str for occurances of pattern and
replaces each such occurance with replacement.
- public void textdomain (string package, string localedir, string encoding)
Sets up the translations for package.
- public string unescape_desktop_entry_value (string value)
Unescapes sequences in value according to Freedesktop.
- public string utf8_remove_controls (string str, ssize_t max_len, string end)
Removes all control characters from str up to end
or up to max_len characters (note that characters does not mean bytes with UTF-8), where both str
and max_len may not be given.
- public string utf8_strndup (string src, ssize_t max_len)
Duplicates the src string up to max_len
characters (note that characters does not mean bytes with UTF-8).
- public unowned string version_string ()
Queries the version string of the installed Xfce desktop environment.