You are not logged in.

#1 2016-02-01 04:40:22

CTAG
Member
Registered: 2013-10-14
Posts: 82

[SOLVED] gpg-agent error on login

Hi,

Whenever I log into my system (tty, ssh, etc) I receive a warning message similar to:

gpg-agent: WARNING "--write-env-file" is an obsolete option - it has no effect

I know it's nothing critical, but I'd like to resolve the warning.

I immediately assume that this is a bad setting I have created in a file like .profile because of the time of it's appearance. But I've reviewed my .bashrc, .profile, .bash_profile, .xinitrc (I use startx) files and haven't found this argument. I tried the gpg-agent.conf file, but it also doesn't mention the given flag. I don't have a gpg-agent.service systemd file anywhere, so I both don't know where gpg-agent is being started from, or where this flag is set.

Where else should I look?

Last edited by CTAG (2016-02-01 06:31:34)

Offline

#2 2016-02-01 06:08:05

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] gpg-agent error on login

Does it happen only once when you login or for every new shell instance you launch?

Offline

#3 2016-02-01 06:11:52

CTAG
Member
Registered: 2013-10-14
Posts: 82

Re: [SOLVED] gpg-agent error on login

x33a wrote:

Does it happen only once when you login or for every new shell instance you launch?

Only for every new login. I checked the .bashrc file because I recalled setting GNUPGHOME environment variable there at one point.

Offline

#4 2016-02-01 06:23:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] gpg-agent error on login

I am guessing you start keychain in your shell profile?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-02-01 06:30:38

CTAG
Member
Registered: 2013-10-14
Posts: 82

Re: [SOLVED] gpg-agent error on login

jasonwryan wrote:

I am guessing you start keychain in your shell profile?

Well, I didn't actually know where the daemon was starting, which was another reason for sorting this warning out.

I gave a last stab at it since replying here with "I don't know where my gpg-agent is starting" seemed silly. Turns out I've been starting the agent from /etc/profile.d, and totally forgot setting that up. I found the line containing --write-env-file and modified it. All is well.

Thanks!

Offline

Board footer

Powered by FluxBB