idlefw/hslaunch/src/hslaunch.cpp
branchRCL_3
changeset 122 6cadd6867c17
parent 114 a5a39a295112
child 130 67f2ed48ad91
--- a/idlefw/hslaunch/src/hslaunch.cpp	Tue Sep 14 21:55:16 2010 +0300
+++ b/idlefw/hslaunch/src/hslaunch.cpp	Wed Sep 15 12:32:36 2010 +0300
@@ -21,7 +21,6 @@
 
 // ========================= DECLARATIONS ==================================
 _LIT( KHsExeName, "homescreen.exe" );
-_LIT( KHsProcessName, "Home screen" );
 const TInt KSleepOnRetry = 250000; // 250ms
 const TUid KPSCategoryUid = TUid::Uid( 0x200286E3 );
 const TInt KPSCrashCountKey = 1;
@@ -186,17 +185,11 @@
 // -----------------------------------------------------------------------------
 //
 void CHsLaunch::RunL()
-    {    
-    // Create app or connect to existing.
-    TInt processExisted = EFalse;
-    
+    {        
+    // Create process
     RProcess process;
-    TInt processError = process.Create( KHsExeName, KNullDesC );
-    if( processError == KErrAlreadyExists )
-        {        
-        processError = process.Open( KHsProcessName, EOwnerProcess );
-        processExisted = ETrue;
-        }
+    TInt processError = KErrNone;    
+    processError = process.Create( KHsExeName, KNullDesC );
     
     TInt monitorError = KErrNone;
     if( processError == KErrNone )
@@ -204,8 +197,7 @@
         TRAP( monitorError, InitProcessMonitorL( process.Id() ) );
         }
     
-    if( processError == KErrNone &&
-        !processExisted )
+    if( processError == KErrNone )
         {
         // Make sure process is started even if monitor startup
         // fails. This will assure that process is not left in