On Thu, 25 May 2017 22:23:51 -0400 "William L. Thomson Jr." <[email protected]>
said:

> On Fri, 26 May 2017 09:06:08 +0900
> Carsten Haitzler (The Rasterman) <[email protected]> wrote:
> >
> > ummm no. the parent process has already removed the env var before
> > your pinentry process is run. i read the gpg-agent code... i believe
> > it's that that spawns the pinentry... so the env var is already gone
> > before your process even begins to run.
> 
> Then you know the ENV variables are gone and not an option.

*sigh* ... you didn't read what i have written a whole bunch of times now and
that is supremely frustrating to deal with.

i said... many times over "it's passed INSTEAD as an argument" ... so then take
the argument content and SET THE ENVIRONMENT VARIABLE (before elm_init is
called). you CAN SET and environment variable from code. it was the first thing
i showed you how to do...

> > your only chance is to get it from arguments. this is why i said that
> > gpg in this case is simply creating extra work by passing as an arg
> > rather than as an env var which is what the rest of the "world" does
> > (your environment determines how to display - both for x11 and
> > wayland).

<snip irrelevant stuff>

> > elm may not init x in elm_init. it may init it later (e.g. when the
> > first window is really created), so don't depend on it being
> > explicitly initted in elm_init. just as long as by elm_init (and
> > after) DISPLAY env var is set...
> 
> There is no ENV variable. One will not be set.

YOU SET it.... putenv(). SET the env var. THEN it exists. SET it. SET the env
var! SET it. after it is is, it will exist. there will be an env var. how many
times have i said this now? to set it... it just does not sink in... : (

let me repeat it yet again in case the multiple repetitions so far of "follow
the first advice given... use putenv etc." didn't work:




<font size=80 color=#ff0000><blink>
YOU set the environment variable with putenv() exactly how i described using
the content of the --display arguments display string which you already cleared
indicated you have as pe->display that pinentry already parsed for you. make
sure it's done BEFORE elm_init() is called.
</blink></font>




did the massive red blinking text help? (yes. i know it probably didn't
actually present it that way - consider it a sign of frustration with someone
who has an issue created by odd other software (gpg) that then gets help and
repeatedly just ignores it).

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [email protected]


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to