Geant4.sh - LD_LIBRARY_PATH setting interferes with libreoffice

Executing the source geant4.sh shell script to set the G4 enviornment, it adds the /usr/lib/x86_64-linux-gnu on the LD_LIBRARY_PATH as

echo $LD_LIBRARY_PATH
/soft/geant/debug/lib:/usr/lib/x86_64-linux-gnu

When I try to launch libreoffice with this LD setting I get the error

/usr/lib/libreoffice/program/javaldx: error while loading shared libraries: libreglo.so: cannot open shared object file: No such file or directory
Warning: failed to read path from javaldx
/usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: libreglo.so: cannot open shared object file: No such file or directory

Removing the /usr/lib/x86_64-linux-gnu from the LD_LIBRARY_PATH, both geant and libreoffice are working fine.
Is it really needed this path?

No, /usr/lib/x86_64-linux-gnu isn’t needed in LD_LIBRARY_PATH. This is likely a bug in the generation of geant4.sh not recognising it as a system path known to the runtime linker.

Your workaround is the right fix for now!