On Thu, 25 May 2017 12:07:17 -0400 "William L. Thomson Jr." <[email protected]> said:
> On Thu, 25 May 2017 10:53:00 -0400 > "William L. Thomson Jr." <[email protected]> wrote: > > > On Thu, 25 May 2017 08:32:17 +0900 > > Carsten Haitzler (The Rasterman) <[email protected]> wrote: > > > > > On Wed, 24 May 2017 15:19:54 -0400 "William L. Thomson Jr." > > > <[email protected]> said: > > > > > > before you init elm/efl: > > > > > > char buf[1024]; > > > snprintf(buf, sizeof(buf), "DISPLAY=%s", pe->display); > > > putenv(strdup(buf)); > > > > I think you mean before pinentry initializes and unsets DISPLAY or > > other. I will test that out and see if that works. If that is the case > > I may be able to call elm_init before I initialize pinentry and solve > > it that way. > > Back to square one... As previously stated, pinentry is running in > another ENV that does not have access to such variables. > > When invoked via git commit, $DISPLAY does not exist, is not set. > When invoked via terminal directly $DISPLAY exists. i know. you already said that at the very start. without using the --display arg param as the display to init x it doesnt work. just set the DISPLAY env var like i showed using the argument given. i.e. if it's --display=:0.0 then putenv("DISPLAY=:0.0"); > The code, which you can see I am checking for the variable first thing > before anything can unset etc. > > main (int argc, char *argv[]) > { > FILE *fd = fopen("/tmp/log.txt","w"); > const char *display = getenv("DISPLAY"); > if(display) > fprintf(fd,"display=%s\n",display); > fclose(fd); > pinentry_init (PGMNAME); > .... > } > > > -- > William L. Thomson Jr. -- ------------- 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
