The entire dnie_get_environment function depends on user interface enable.