Web lists-archives.com

libsecret prompts without GUI




Hi all,

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;

[https://github.com/Tomsod/clibsecret/blob/816e112386f0221302783d0b125e615f63737c9d/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?

Thanks much!
Gabor
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list