Configuration
Environment
Export environment variables to programs Sweets launches
sweets.env(name, value) sets an environment variable for every program Sweets
launches.
sweets.env("MOZ_ENABLE_WAYLAND", "1")
sweets.env("GTK_IM_MODULE", "fcitx")
sweets.env("QT_QPA_PLATFORM", "wayland;xcb")Both arguments are strings. name must be non-empty and cannot contain =.
Setting the same name twice keeps the later value. An empty value exports an
empty string rather than unsetting the name.
Variables are applied at startup, so they override inherited values and every
spawn action inherits them.
A reload applies all changes together and unsets names the previous configuration set but the new one omits. If it fails, the previous environment and configuration stay active.