[Gambas-user] Password problem in database connection
Doug Hutcheson
owlbrudder at gmail.com
Fri Jan 5 00:26:57 CET 2018
On Thu, 2018-01-04 at 15:15 -0400, PICCORO McKAY Lenz wrote:
> a fool question, if i not have any of those stuff can i still use if
> i do not decided to store the password? similar problem happened in
> the pas when gnome-keyring was not available..
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2018-01-04 3:41 GMT-04:00 Doug Hutcheson <owlbrudder at gmail.com>:
> > On Thu, 2018-01-04 at 08:29 +0100, Benoît Minisini wrote:
> > > Hi,
> > >
> > > For information, the IDE use the 'gb.desktop' component for
> > > storing and
> > > retrieving password.
> > >
> > > The source code is in the "_Desktop_Password.class" file. That
> > > class
> > > tries to use the command-line tool associated with the current
> > > desktop:
> > > DBus with "KDE", secret-tool with "GNOME", "LXDE", "MATE",
> > > "XFCE",
> > > "UNITY" and "CYGWIN".
> > >
> > > Regards,
> > >
> >
> > Thanks Benoît. I will have to bone up on secret-tool to see if I
> > can emulate what your code is doing, but from the command line. I
> > am pretty sure this is where the problem exists. Your code is
> > corrctly setting the password in the keyring, so it must be a
> > problem with retrieving the password again.
> >
> > Kind regards,
> > Doug
> >
> >
PICCORO, you can still access a database through code with the password
'hard wired', but I do not see how you could use the Connection objects
without a desktop keyring. I may be wrong - I often am. "8-)
More information about the User
mailing list