desktop/source/app/app.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit 554370661554652e7be96034e310d6863c700285 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Fri Jul 22 11:20:40 2022 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Tue Aug 2 14:23:02 2022 +0200 desktop: avoid run graphic tests if ... DISPLAY=hostname:displaynumber.screennumber has defined a remote display server, otherwise the initialization stuck for long time. Signed-off-by: Henry Castro <hcas...@collabora.com> Change-Id: Ieb598a023bce3d4298e02fa3ed6ae2bcfc6df015 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137366 Tested-by: Jenkins diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index a45ce9f82a51..058e953ac60e 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -1571,7 +1571,11 @@ int Desktop::Main() #endif //Running the VCL graphics rendering tests - runGraphicsRenderTests(); + const char * pDisplay = std::getenv("DISPLAY"); + if (!pDisplay || pDisplay[0] == ':') + { + runGraphicsRenderTests(); + } // Post user event to startup first application component window // We have to send this OpenClients message short before execute() to