If it's only to run dogtail automated tests, perhaps you can use .xinitrc for a "dogtail" user or simply use /etc/environment to set the env vars system-wide?
If it's only to run dogtail automated tests, perhaps you can use .xinitrc for a "dogtail" user or simply use /etc/environment to set the env vars system-wide?