X11 usage in kdeinit/kinit.cpp

Martin Gräßlin mgraesslin at kde.org
Tue Feb 18 06:50:59 UTC 2014


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140218/db5edb4c/attachment.sig>


More information about the Kde-frameworks-devel mailing list