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));

why DISPLAY was not properly set for you before execution yet somehow has been
provided to you via some other means... baffles me. seems a little unfriendly.
whatever is executing you should set this. same for WAYLAND_DISPLAY ... both of
these should have already been set (well one or the other really, not both at
once unless both display targets are available) before your process executes.
that's how it works normally.

> In working on pinentry, it seems for some reason I am needing to call
> ecore_x_init. Otherwise you do not get a window. Per recent discussion
> over ecrire, one should not have any ecore_x or ecore_wl, etc code. Or
> be bound to one or the other.
> 
> It seems there is a need for a wrapper around ecore_x_init and
> ecore_wl_init, at minimum. Maybe need to create such for the others,
> win32 and cocoa. It seems like I will need to produce something along
> those lines to solve the problem.
> 
> The code is
> 
>   if (pe->display)
>     ecore_x_init (pe->display);
> 
> But I may need ecore_wl_init, if wayland is in use. For now I need to
> see about detecting if under Wayland or X, so I can switch accordingly.
> 
> Unless others have some input. The full code is here
> https://github.com/Obsidian-StudiosInc/pinentry/blob/master/efl/pinentry-efl.c
> 
> -- 
> 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

Reply via email to