On Monday 17 February 2014 23:30:07 Christoph Cullmann wrote: > ----- Ursprüngliche Mail ----- > > > > > wrapper.cpp assumes there is a DISPLAY env variable and even if not > > > > it's > > > > set to ":0". > > > > > > Can't we detect that we're not on X11 simply from the fact that DISPLAY > > > is > > > not set? > > > > No that doesn't work as I expect that at least during the next decade we > > will have both WAYLAND_DISPLAY and DISPLAY being set (DISPLAY for legacy > > applications which won't have a Wayland port any time soon - e.g. Qt4). > Hi, > > wouldn't be then the assumption: "if WAYLAND_DISPLAY is defined, use > wayland, else use X11" work?
Sounds dangerous to me. > > Or would it make any sense to have that defined (in a normal user desktop) > but still use X11 as default? Well I'm just running such a setup, but I'm not sure whether my dev setup counts as a valid setup ;-) I cannot say whether that will happen or not, but overall it sounds dangerous to me to infer functionality based on whether WAYLAND_DISPLAY is defined. Cheers Martin
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel