diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-03-29 14:03:49 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-03-29 15:34:19 -0500 |
commit | 84a75d7f8fab6a8c1f61764a5809ea744a5197b1 (patch) | |
tree | 46c412f0505cfe8e011aea16bcb9da798cfa2cb9 /desktop/win32/source/officeloader | |
parent | 39183c4959895d313bf38299a4f9d4063561b572 (diff) |
support --headless
Diffstat (limited to 'desktop/win32/source/officeloader')
-rwxr-xr-x | desktop/win32/source/officeloader/officeloader.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/desktop/win32/source/officeloader/officeloader.cxx b/desktop/win32/source/officeloader/officeloader.cxx index 6375e5662b69..7a08d7ee64c7 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; + } } } } |