From ca5b71fc2a2d214c453657b6b8a76025f78944a3 Mon Sep 17 00:00:00 2001 From: Aron Budea Date: Fri, 14 Jul 2017 16:46:29 +0200 Subject: tdf#109085: don't create lock file in profile Change-Id: I7b6fd9da8c0280a2ee22494aa9bcc38b81f66111 Reviewed-on: https://gerrit.libreoffice.org/39972 Reviewed-by: Andras Timar Tested-by: Andras Timar --- desktop/source/app/app.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 39474b850d24..819bcde64954 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -1447,9 +1447,10 @@ int Desktop::Main() #if HAVE_FEATURE_DESKTOP // check user installation directory for lockfile so we can be sure // there is no other instance using our data files from a remote host - m_xLockfile.reset(new Lockfile); /* tdf#109085 temporary don't show warning about another instance running + m_xLockfile.reset(new Lockfile); + if ( !rCmdLineArgs.IsHeadless() && !rCmdLineArgs.IsInvisible() && !rCmdLineArgs.IsNoLockcheck() && !m_xLockfile->check( Lockfile_execWarning )) { -- cgit v1.2.3