On Wed, 24 May 2017 23:06:25 -0400 "William L. Thomson Jr." <[email protected]> said:
> On Thu, 25 May 2017 10:19:13 +0900 > Carsten Haitzler (The Rasterman) <[email protected]> wrote: > > > On Wed, 24 May 2017 20:31:39 -0400 "William L. Thomson Jr." > > <[email protected]> said: > > > > > It seems I am down to the following question. > > > > > > How to tell if EFL is using Wayland? Before calling ecore_wl_init, > > > without using ENV variables. > > > > you aren't really meant to know. we try and hide it. > > What is it with hiding data? What good is that? Just makes things more > difficult for others. Isn't part of the idea of FOSS open data? because your app should be portable irrespective of x11 or wayland (or framebuffer and so on) as a display target. it should not require code on your part to handle each one. gpg is forcing this on you by the way it passes display information differently to the rest of the world. > > you could guess > > from environment variables set. there's also ELM_DISPLAY which > > specifically tells elm which display system to use (set it to x or wl > > to choose) if both DISPLAY and WAYLAND_DISPLAY are set). it could > > also be set to "fb" to ignore these env vars and display direct to > > the framebuffer. > > I already said environment variables are not an option. they are. see my example. do the putenv before initting elm > > efl decides what to use based on which env vars are set to which > > values. if its on windows or osx then it doesnt need to decide as it > > has only one option. > > I really do not care. I just need to replace ecore_x_init with something > that will replace its function for both X and Wayland. you don;'t need to replace it with anything. just ensure the environemtn variables are set. gpg is forcing you to now do this as it just be automatic like it is everywhere else. > I spent hours on this today trying various things. I do not need > details, explanations etc. I just need code to open a window when > environment variables are not present. i gave you a solution. putenv. it was the first thing i did. well in my first mail. > Thus far without calling ecore_x_init, no window shows. I tried all > sorts of other things that did not work. Seems more guessing than > knowing the solution. > > -- > 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
