add_password_sync


Description:

public string add_password_sync (string name, string password, uint timeout) throws Error

Add the password to the GPasteDaemon

A name already in use fails with g_paste_error_already_exists in the g_paste_error domain, leaving the history and clipboard untouched. The nameless placeholder "******" may be shared by multiple passwords.

timeout is as in make_password.

Parameters:

this

a Client instance

name

the name to identify the password to add

password

the password to add

timeout

how long it may stay on the clipboard, in seconds, or 0 for as long as anything else

Returns:

the uuid of the item that was added