Re: gnome-keyring Accessing keyring from cron job



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/12/2012 12:21 AM, Marco wrote:
> I'd like an application run from a user crontab to access a 
> password stored in the keyring. Apparently jobs run in the cron
> job environment do not have access to the DBUS session data.
> 
> My current workaround is the following script which I run after 
> login.
> 
> touch $HOME/.dbus/Xdbus chmod 600 $HOME/.dbus/Xdbus env | grep 
> DBUS_SESSION_BUS_ADDRESS > $HOME/.dbus/Xdbus echo 'export 
> DBUS_SESSION_BUS_ADDRESS' >> $HOME/.dbus/Xdbus
> 
> The resulting file is sourced by the script than runs as a cron 
> job. It is working, but feels clumsy.
> 
> Is there a proper or an easier way to access the keyring from cron
>  jobs?

No 'proper' way. At least I haven't heard of one. May be an
interesting general DBus topic for dbus lists freedesktop org (or its
archives).

Cheers,

Stef

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlDILJ0ACgkQe/sRCNknZa8ZJwCg91SCeusMAx9iDc2PKeo4ja+F
MYUAoMCMUyx0/MGCTKWJXXaS7BgfMCKq
=7PmE
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]