summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2011-03-29 14:03:49 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-03-29 15:34:19 -0500
commit127deb15f47d4e99cf1b6e7c6f124a19f70721ba (patch)
tree2f420ca9c088b26ee3ec489f655167f90c4da587 /desktop
parent63dd80a32801d4e9353f3499038751e46e93c5c3 (diff)
support --headless
Diffstat (limited to 'desktop')
-rwxr-xr-xdesktop/win32/source/officeloader/officeloader.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/desktop/win32/source/officeloader/officeloader.cxx b/desktop/win32/source/officeloader/officeloader.cxx
index 0654e0de4e..f61b56216d 100755
--- a/desktop/win32/source/officeloader/officeloader.cxx
+++ b/desktop/win32/source/officeloader/officeloader.cxx
@@ -356,7 +356,7 @@ int WINAPI _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int )
BOOL bHeadlessMode( FALSE );
{
- // Check command line arguments for "-headless" parameter. We only
+ // Check command line arguments for "--headless" parameter. We only
// set the environment variable "ATTACHED_PARENT_PROCESSID" for the headless
// mode as self-destruction of the soffice.bin process can lead to
// certain side-effects (log-off can result in data-loss, ".lock" is not deleted.
@@ -370,8 +370,11 @@ int WINAPI _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int )
for ( n = 1; n < argc; n++ )
{
- if ( 0 == _tcsnicmp( argv[n], _T("-headless"), 9 ) )
+ if ( 0 == _tcsnicmp( argv[n], _T("-headless"), 9 ) ||
+ 0 == _tcsnicmp( argv[n], _T("--headless"), 9 ) )
+ {
bHeadlessMode = TRUE;
+ }
}
}
}