I have a branch that sets the following as shown. <scope_type> is one of
"aggregator", "leaf-net", or "leaf-fs".

XDG_RUNTIME_DIR=/run/user/$UID
XDG_DATA_HOME=$HOME/.local/share/unity-scopes/<scope_type>/<scope_id>
TMPDIR=$HOME/.local/share/unity-scopes/<scope_type>/<scope_id>
XDG_CONFIG_HOME=<scope install directory>
LD_LIBRARY_PATH=<scope install directory>
UBUNTU_APPLICATION_ISOLATION=1

I don't think there is any point in adding <click-install-dir>/lib to
LD_LIBRARY_PATH because a scope can't install anything there.

Similarly, I don't think there is any point in setting PATH because a
scope isn't allowed to exec anything anyway?

I didn't set APP_ID because we now have a cache_directory() method
available to the scope that returns the root dir of the scope's scratch
area in the filesystem. There is also a scope_directory() method that
returns the install directory of the scope.

Will this be OK?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1327426

Title:
  scopes runner should set various confinement variables

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-scopes-api/+bug/1327426/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to