diff --git a/Running-programs-natively-under-Wayland.md b/Running-programs-natively-under-Wayland.md new file mode 100644 index 0000000..20ac570 --- /dev/null +++ b/Running-programs-natively-under-Wayland.md @@ -0,0 +1,33 @@ +If your toolkit/library supports this, you can have your apps run natively (without XWayland) by setting some environmental variables (you can add them to your launcher script or a session file (if you're using a dm)). + +Beware: clipboard synchronization between X and Wayland is not yet implemented. + +## GTK+ (3.0+) +``` +GDK_BACKEND=wayland +CLUTTER_BACKEND=wayland +``` + +## Qt5 +``` +QT_QPA_PLATFORM=wayland-egl +``` + +## Elementary/EFL +``` +ECORE_EVAS_ENGINE=wayland_egl +ELM_ENGINE=wayland_egl +``` + +You could set them to `wayland_shm` instead, if you want to use software rendering. + +## SDL +``` +SDL_VIDEODRIVER=wayland +``` + +## Java +Some Java awt applications would not display properly unless you set the following. +``` +_JAVA_AWT_WM_NONREPARENTING=1` +```