GLib.BookmarkFile.prototype.to_file

function to_file(filename: String): Boolean {
    // Gjs wrapper for g_bookmark_file_to_file()
}
  

This function outputs bookmark into a file. The write process is guaranteed to be atomic by using GLib.file_set_contents internally.

Since 2.12

filename

path of the output file

Returns

true if the file was successfully written.