Checking for Wayland and Wayland applications
Looking through windows asks: Is there a way to tell whether the desktop environment I am currently using is running on Wayland or not? And is it possible to detect if my desktop application is using Wayland or XWayland?
DistroWatch answers: Yes, there are tools for detecting whether your current desktop is running on a Wayland or X.Org session. Perhaps the easiest way you can check this is by opening a virtual terminal and running the following command. This should work on most Linux distributions:echo $XDG_SESSION_TYPEThe above command prints out the value of the XDG_SESSION_TYPE variable. The command should print either "x11" on your terminal, indicating your desktop session is running on X.Org, or "wayland" if you have signed into a Wayland session.
To see if one of your desktop applications is running as a pure Wayland program, or under either X.Org or XWayland, you can run a command line tool called xprop, which is short for "X properties". Running xprop will cause your mouse cursor to turn into a cross. The next window you click on will cause xprop to display the information it can find on that application in your terminal. Clicking on a Wayland program should not result in xprop displaying any information. Clicking in a program running in X.Org/XWayland mode will display the program's icon, process name and window identity information.
DistroWatch: https://www.distrowatch.com/
No comments:
Post a Comment