Re: [fltk.coredev] Towards a Wayland platform for the FLTK library ?

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
Previous Message ]New Message | Reply ]Next Message ]

Re: Towards a Wayland platform for the FLTK library ? Albrecht Schlosser 08:57 Jun 16 top right image
On 6/16/21 4:03 PM Manolo wrote:
It turns out I had to introduce slight differences in the FLTK Wayland code depending on whether it's run with Weston or with Gnome-Wayland. This creates the need for libfltk to detect whether Weston is running. I have found that environment variable
XDG_SESSION_DESKTOP may be where to get that info. I see its value is
weston or Ubuntu-wayland or gnome.
A question to Weston users Albrecht and W.B. :
Is XDG_SESSION_DESKTOP defined in your setup? and does its value contain the string "weston" ?

I haven't tried this yet in my Ubuntu VM, but on my Linux Mint the answers are unfortunately "yes" and "no". Here's an excerpt of maybe related environment vars:


I executed 'env' in a "terminal" session provided by my weston instance on the Linux desktop, the output is filtered.

You can see that WAYLAND_DISPLAY is defined. This is the only related variable that is different than in a normal X session, but that doesn't help, unfortunately.

You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Direct Link to Message ]
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]

Comments are owned by the poster. All other content is copyright 1998-2021 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to ''.