Weston application environment#
For all applications on Wayland it requires a certain set of environment variables to be correctly set.
SimpleCore™ reference distribution simplecore-distro
does offer a well defined set at /etc/default/weston-environment
.
This will make sure that all SOC specific settings, like paths and names will be available to you in a common way.
Usage within a systemd service#
Within a systemd service this can be easily made use of with
[Service]
...
EnvironmentFile=/etc/default/weston-environment
...
Usage from shell#
/etc/default/weston-environment
is automatically sourced in /etc/profile
. So, from a shell where
/etc/profile
has been read or which inherit environment variables from such shell, there is nothing to do.
There are still some cases where explicitly sourcing /etc/default/weston-environment
could be needed.
From a POSIX compliant shell
. /etc/default/weston-environment
...