Weston Configuration File Location

Weston uses a configuration file called weston.ini for its setup. When Weston starts, it will search for the weston.ini configuration file in one of the following places:

If $XDG_CONFIG_HOME is set, Weston searches in:

$XDG_CONFIG_HOME/weston.ini

If $HOME is set, Weston searches in:

$HOME/.config/weston.ini

If $XDG_CONFIG_DIRS is set, Weston searches in:

$XDG_CONFIG_DIR/weston/weston.ini

If $XDG_CONFIG_DIRS is not set, Weston searches in:

/etc/xdg/weston/weston.ini

If no variables are set, Weston searches in:

<current dir>/weston.ini

Where the environment variable:

  • $HOME is your home directory.
  • $XDG_CONFIG_HOME is your specific configuration directory.
  • $XDG_CONFIG_DIRS is a colon ':' delimited list of configuration base directories, such as /etc/xdg-foo:/etc/xdg.