Gtk.PrintSettings.prototype.to_file

function to_file(file_name:filename):Boolean {
    // Gjs wrapper for gtk_print_settings_to_file()
}

This function saves the print settings from settings to file_name. If the file could not be loaded then error is set to either a GLib.FileError or GLib.KeyFileError.

Since 2.12

file_name

the file to save to

Returns

true on success