non-desktop: Don't even attempt to create a lockfile.

Change-Id: I68a4cf8f2e302b49e3d2719ee2bad3f823e8a036
This commit is contained in:
Jan Holesovsky 2014-04-15 11:41:23 +02:00
parent 6b7e0c7a9f
commit 048d27bae8

View File

@ -1422,12 +1422,12 @@ int Desktop::Main()
SetSplashScreenProgress(25); SetSplashScreenProgress(25);
#if HAVE_FEATURE_DESKTOP
// check user installation directory for lockfile so we can be sure // check user installation directory for lockfile so we can be sure
// there is no other instance using our data files from a remote host // there is no other instance using our data files from a remote host
SAL_INFO( "desktop.app", "desktop (lo119109) Desktop::Main -> Lockfile" ); SAL_INFO( "desktop.app", "desktop (lo119109) Desktop::Main -> Lockfile" );
m_xLockfile.reset(new Lockfile); m_xLockfile.reset(new Lockfile);
#if HAVE_FEATURE_DESKTOP
if ( !rCmdLineArgs.IsHeadless() && !rCmdLineArgs.IsInvisible() && if ( !rCmdLineArgs.IsHeadless() && !rCmdLineArgs.IsInvisible() &&
!rCmdLineArgs.IsNoLockcheck() && !m_xLockfile->check( Lockfile_execWarning )) !rCmdLineArgs.IsNoLockcheck() && !m_xLockfile->check( Lockfile_execWarning ))
{ {