summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2010-10-15 11:48:35 +0200
committerLuboš Luňák <l.lunak@suse.cz>2010-10-15 11:50:34 +0200
commit8e399664b116ed8a9f953f018ace7e73d9733cc5 (patch)
treeb2a786f60ea4f9e6d5bd147d2a54f12cc4f2cb15
parent110478088e4eca26bf99d2024eeba486e26aa557 (diff)
disable KDE's crash handler
-rw-r--r--vcl/unx/kde4/KDEXLib.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/vcl/unx/kde4/KDEXLib.cxx b/vcl/unx/kde4/KDEXLib.cxx
index 8ee186013231..92cdb579d860 100644
--- a/vcl/unx/kde4/KDEXLib.cxx
+++ b/vcl/unx/kde4/KDEXLib.cxx
@@ -131,7 +131,7 @@ void KDEXLib::Init()
//kAboutData->setProgramIconName("OpenOffice");
- m_nFakeCmdLineArgs = 1;
+ m_nFakeCmdLineArgs = 2;
USHORT nIdx;
vos::OExtCommandLine aCommandLine;
int nParams = aCommandLine.getCommandArgCount();
@@ -146,10 +146,10 @@ void KDEXLib::Init()
aCommandLine.getCommandArg( nIdx + 1, aParam );
aDisplay = rtl::OUStringToOString( aParam, osl_getThreadTextEncoding() );
- m_nFakeCmdLineArgs = 3;
- m_pFreeCmdLineArgs = new char*[ m_nFakeCmdLineArgs ];
- m_pFreeCmdLineArgs[ 1 ] = strdup( "-display" );
- m_pFreeCmdLineArgs[ 2 ] = strdup( aDisplay.getStr() );
+ m_pFreeCmdLineArgs = new char*[ m_nFakeCmdLineArgs + 2 ];
+ m_pFreeCmdLineArgs[ m_nFakeCmdLineArgs + 0 ] = strdup( "-display" );
+ m_pFreeCmdLineArgs[ m_nFakeCmdLineArgs + 1 ] = strdup( aDisplay.getStr() );
+ m_nFakeCmdLineArgs += 2;
}
}
if ( !m_pFreeCmdLineArgs )
@@ -159,6 +159,7 @@ void KDEXLib::Init()
osl_getSystemPathFromFileURL( aParam.pData, &aBin.pData );
rtl::OString aExec = rtl::OUStringToOString( aBin, osl_getThreadTextEncoding() );
m_pFreeCmdLineArgs[0] = strdup( aExec.getStr() );
+ m_pFreeCmdLineArgs[1] = strdup( "--nocrashhandler" );
// make a copy of the string list for freeing it since
// KApplication manipulates the pointers inside the argument vector