From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.user Subject: Re: Guile and Libsecret? Date: Wed, 25 Dec 2019 15:29:59 -0300 Message-ID: <20191225152959.6070ae97@capac> References: <974216238.702121.1576642909402.ref@mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/zDUOvryBaMZ=A/ZyqXd5wi5"; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="158507"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "guile-user@gnu.org" To: Jonathan Schmeling Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Dec 25 19:30:42 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ikBQc-000f1s-W6 for guile-user@m.gmane.org; Wed, 25 Dec 2019 19:30:39 +0100 Original-Received: from localhost ([::1]:48552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ikBQb-0005nl-Q9 for guile-user@m.gmane.org; Wed, 25 Dec 2019 13:30:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51606) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ikBQC-0005gK-Cr for guile-user@gnu.org; Wed, 25 Dec 2019 13:30:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ikBQA-0003Hn-Gf for guile-user@gnu.org; Wed, 25 Dec 2019 13:30:11 -0500 Original-Received: from maximusconfessor.all2all.org ([79.99.200.102]:42540) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ikBQA-0003HU-Ah for guile-user@gnu.org; Wed, 25 Dec 2019 13:30:10 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by maximusconfessor.all2all.org (Postfix) with ESMTP id 6CCE31BE00BD; Wed, 25 Dec 2019 19:30:07 +0100 (CET) Original-Received: from maximusconfessor.all2all.org ([127.0.0.1]) by localhost (maximusconfessor.all2all.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wKpJQPcmd_6l; Wed, 25 Dec 2019 19:30:07 +0100 (CET) Original-Received: from capac (unknown [179.210.16.12]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id AA4221BE00BA; Wed, 25 Dec 2019 19:30:06 +0100 (CET) In-Reply-To: X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 79.99.200.102 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15972 Archived-At: --Sig_/zDUOvryBaMZ=A/ZyqXd5wi5 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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 ...=20 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 ...=20 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 --Sig_/zDUOvryBaMZ=A/ZyqXd5wi5 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAl4DqqcACgkQ83T9k6MF eteeKwf/XodWsoT7/G+ZUu1RL9u3yI/V//yWZC/pWGjPvyb9p7Xz83SNv3BK51Ij IQJ8npWPjkHV8nt05TzRAH63IQqFIpwu/WGLk9giBb3fBhNoSizK0R44qMlwBj4/ jBFmeqwU/5c1SH/m/m7O/+m6MnzAvb3IPBQ1pmbn6ztomTIgabBi/jlKQziYsZXR iYJYIwkgkBB3M9h9ZyEeMxdQqEdKQ6fdfe4bFWIR9mFfc9E+Hw4XTxaWJA5kCm3o 4e7MvpgZVq5hBW9YC7v7YCrp0TRVm115IysdtXrjVehEojcjm732kfx6acM5pXfY eqlkfRk85Q/7nJebmqrqSGjj9VndGQ== =bvBD -----END PGP SIGNATURE----- --Sig_/zDUOvryBaMZ=A/ZyqXd5wi5--