YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
4.12k stars 123 forks source link

cannot set envirinment variables #692

Closed zimbipw closed 1 month ago

zimbipw commented 1 month ago

I want the following env variables in my config file: environment { CLUTTER_BACKEND {wayland} GDK_BACKEND {wayland,x11}
QT_STYLE_OVERRIDE {adwaita} QT_AUTO_SCREEN_SCALE_FACTOR {1} QT_QPA_PLATFORM {wayland} QT_SCALE_FACTOR {1} QT_WAYLAND_DISABLE_WINDOWDECORATION {1} QT_WAYLAND_DECORATION {adwaita} }

However I get error message like this: snippet line 9: CLUTTER_BACKEND {wayland} label at line 9, column 29: unexpected token

System Information

YaLTeR commented 1 month ago

You don't need the inner {}. It should be quotes instead.

environment {
    CLUTTER_BACKEND "wayland"
}