libsecret prompts without GUI
- Date: Wed, 22 Feb 2017 09:46:44 +0000
- From: Gábor Csárdi <csardi.gabor+gtk-list@xxxxxxxxx>
- Subject: libsecret prompts without GUI
I hope this is an appropriate venue for libsecret/glib questions.
I am writing a libsecret client and wondering if I can perform the prompting without the GUI. Based on the docs, this might be possible, by overriding some prompting functions in the appropriate libsecret class. I even found a dummy example:
SecretServiceClass *class = SECRET_SERVICE_GET_CLASS(serv)
class->prompt_sync = &prompt_sync_dummy;
class->prompt_async = &prompt_async_dummy;
class->prompt_finish = &prompt_finish_dummy;
bsecret/blob/816e112386f022130] 2783d0b125e615f63737c9d/ clibsecret.c#L469-L472
But I am having a hard time implementing this with a non-dummy prompting function. Is this possible at all? If yes, can someone give me some pointers for what the overriding prompt_sync, etc. functions are expected to do?
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-list