Libreoffice hangs on open (and a few other things...)

First, let me say: Love your work! does exactly what I need. Thank you.
Second: I setup an lsio libreoffice docker (xrdp based) and after a few "stop-start"s the libreoffice hangs upon opening. Is there any idea why or how I can bypass this problem (I really want a web based full fledged libreoffice, including macros for production)? I don’t see any information in the logs…
Third: On /config/custom-cont-init.d I insert:
libreoffice --impress as a stratup script. However, when starting the container I get cannot open display in the log. As far as I can understand, the script runs before loading the X server. Is it possible to make it wait?