unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: David Pirotte <david@altosw.be>
To: Jonathan Schmeling <jaft.r@outlook.com>
Cc: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: Guile and Libsecret?
Date: Wed, 25 Dec 2019 15:29:59 -0300	[thread overview]
Message-ID: <20191225152959.6070ae97@capac> (raw)
In-Reply-To: <DM6PR19MB2460E53B968ED5771C1A7CFC99530@DM6PR19MB2460.namprd19.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 1405 bytes --]

Hi Jonathan,

> My understanding is that it would be done via Libsecret (hence the
> subject) though anyone correct me if I'm mistaken about anything
> here, in any way.

> Ideally, I'm just looking to store a password in Gnome Keyring via
> Guile and, later, pulling out that password, once more, so I'm trying
> to see if, possibly, anything already exists out there for that.

'Technically', since there is a gir typelib for libsecret, you should be
able to use it either with guile-gi (1) or g-golf (2) - but be aware
that both projects are still being developed, so you'd need to be
ready to help (with snipset examples mostly) and be patient ... 

Using g-golf, you'd do (assuming you installed the gir1.2-secret-1,
so the Secret-1.typelib is available):

	,use (g-golf)
	(gi-import "Secret")

	then call the secret-* procedures ... 

Though I see it uses GHashTables, which I didn't bind yet,
something I can solve relatively quickly ... let me know if you wish to
try that route, what is the minimum set of g-hash-* functions that
would get you started ... I'll bind those 'in priority' ...

David

(1)	 https://spk121.github.io/guile-gi/

(2)	https://www.gnu.org/software/g-golf/index.html

	if you are interested, you should install from the source, and
	checkout the devel branch

	I am very regularly on irc, freenode, channel #guile, my
	nick is daviid

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      reply	other threads:[~2019-12-25 18:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <974216238.702121.1576642909402.ref@mail.yahoo.com>
2019-12-18  4:21 ` Guile and Libsecret? Jonathan Schmeling
2019-12-25 18:29   ` David Pirotte [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191225152959.6070ae97@capac \
    --to=david@altosw.be \
    --cc=guile-user@gnu.org \
    --cc=jaft.r@outlook.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).