From 12c445dff3695b119e129a442ebc0481d4e6d8c9 Mon Sep 17 00:00:00 2001 From: Stephan Schäfer Date: Fri, 11 May 2001 14:18:49 +0000 Subject: just launch soffice and quit --- sysui/source/win32/QuickStart/QuickStart.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'sysui/source') diff --git a/sysui/source/win32/QuickStart/QuickStart.cpp b/sysui/source/win32/QuickStart/QuickStart.cpp index 16c91ab0ed27..be1a7d24c401 100644 --- a/sysui/source/win32/QuickStart/QuickStart.cpp +++ b/sysui/source/win32/QuickStart/QuickStart.cpp @@ -49,21 +49,23 @@ bool launchSoffice( ) char *p = strrchr( filename, '\\' ); if ( !p ) return false; - strcpy( p+1, "swriter.exe" ); + strcpy( p+1, "soffice.exe" ); char imagename[_MAX_PATH + 1]; - wsprintf(imagename, "\"%s\" -bean", filename ); + wsprintf(imagename, "\"%s\" -invisible", filename ); UINT ret = WinExec( imagename, SW_SHOW ); if ( ret < 32 ) return false; - +/* // wait until we can communicate int retry = 30; while (retry-- && !SofficeRuns() ) Sleep(1000); return SofficeRuns(); + */ + return true; } else return true; @@ -111,6 +113,9 @@ int APIENTRY WinMain(HINSTANCE hInstance, LPSTR lpCmdLine, int nCmdShow) { + launchSoffice(); + return 0; + // TODO: Place code here. MSG msg; HACCEL hAccelTable; -- cgit