summaryrefslogtreecommitdiff
path: root/sysui
diff options
context:
space:
mode:
authorStephan Schäfer <ssa@openoffice.org>2001-05-11 14:18:49 +0000
committerStephan Schäfer <ssa@openoffice.org>2001-05-11 14:18:49 +0000
commit12c445dff3695b119e129a442ebc0481d4e6d8c9 (patch)
treecfe85dacc838204f8721d685854571dbcc614c0d /sysui
parent74cd4013081390e5131783182bda96aa22c24b9f (diff)
just launch soffice and quit
Diffstat (limited to 'sysui')
-rw-r--r--sysui/source/win32/QuickStart/QuickStart.cpp11
1 files changed, 8 insertions, 3 deletions
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;