Re: Towards a Wayland platform for the FLTK library ?
Albrecht Schlosser
Jun 16, 2021
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.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.