Created Running programs natively under Wayland (markdown)

Hummer12007 2016-10-13 00:25:05 +03:00
parent f2028ea85b
commit 70185c3e58

@ -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`
```