rb.env reads and sets environment variables and returns the paths of the
user’s known folders. A script reaches for it to read a value from the
environment, hand a variable to a program it starts through rb.system, or pick
a start location for a dialog.
Needs: the exec permission for
set.
This script picks the downloads folder, falling back to the home and temporary
directories, and reads the user name from the environment:
rb.env.set changes the environment of the whole Rebind process: every running
script sees it, and so does any process started later through rb.system, until
Rebind exits.
The folder paths lie outside the rb.file sandbox; use them for dialog start
locations, not rb.file calls.