2021-02-10 14:03:56 +00:00
|
|
|
Title: Using GTK with Wayland
|
|
|
|
Slug: gtk-wayland
|
2020-05-24 14:55:02 +00:00
|
|
|
|
|
|
|
The GDK Wayland backend provides support for running GTK applications
|
|
|
|
under a Wayland compositor. To run your application in this way, select
|
|
|
|
the Wayland backend by setting `GDK_BACKEND=wayland`.
|
|
|
|
|
|
|
|
On UNIX, the Wayland backend is enabled by default, so you don't need to
|
|
|
|
do anything special when compiling it, and everything should "just work."
|
|
|
|
|
2021-02-20 05:20:46 +00:00
|
|
|
## Wayland-specific environment variables
|
2020-06-28 17:41:15 +00:00
|
|
|
|
|
|
|
### WAYLAND_DISPLAY
|
|
|
|
|
|
|
|
Specifies the name of the Wayland display to use. Typically, wayland-0
|
|
|
|
or wayland-1.
|
|
|
|
|
|
|
|
### XDG_RUNTIME_DIR
|
|
|
|
|
|
|
|
Used to locate the Wayland socket to use.
|