This repository provides a boxed environment with:
- a unique dBus session for the boxed environment
- a systemd instance for the boxed envrionment
Just run the box.sh
script in front of the command you want to run and the
command is executed in the boxed environment. The environment is rooted at the
location where the script is. The following environment variables are modified:
XDG_CONFIG_HOME
: to theconfig
directoryXDG_DATA_HOME
: to thedata
directorySYSTEMD_UNIT_PATH
: to theunits
directory
Each directory in the |pluginsdirectory corresponds to a plugin. Each plugin can have a
unitsdirectory. This directory is appended to the end of
SYSTEMD_UNIT_PATH`.
Because of propagation of environment variables, you must restart systemd if you add/remove a plugin.
Just try this out:
./box.sh systemd &
./box.sh systemctl --user exit