function set_icon(uri: String, href: String, mime_type: String): void {
    // Gjs wrapper for g_bookmark_file_set_icon()

Sets the icon for the bookmark for uri. If href is null, unsets the currently set icon. href can either be a full URL for the icon file or the icon name following the Icon Naming specification.

If no bookmark for uri is found one is created.

Since 2.12


a valid URI


the URI of the icon for the bookmark, or null


the MIME type of the icon for the bookmark