I've mentioned this problem here https://bugs.gentoo.org/show_bug.cgi?id=344119 already, but it is still not solved. G4WORKDIR variable is defined as "${HOME}/geant4" in /etc/env.d/99geant4 On my system I found behavior that on fresh system (after restart) this variable is set to "/root/geant4" (in terminal and in X11 environment) and it is required to cal env-update and source /etc/profile to get proper value "${HOME}/geant4". Can you confirm this?
G4WORKDIR now gone from the env scripts. Newer (still masked) geant-4.9.4 uses cmake and users should source /usr/share/geant4/config/geant4-9.4.0.sh