Handle app preference via env variables.