[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kio/kio
From:       David Faure <faure () kde ! org>
Date:       2003-05-31 19:14:49
[Download RAW message or body]

CVS commit by faure: 

Stop startup notification immediately when trying to run an executable that doesn't \
exist (e.g. from a konq servicemenu)


  M +10 -2     krun.cpp   1.225


--- kdelibs/kio/kio/krun.cpp  #1.224:1.225
@@ -476,6 +476,13 @@ static pid_t runCommandInternal( KProces
   {
       KStartupInfoData data;
+      if ( pid ) // successfully started
+      {
       data.addPid( pid );
       KStartupInfo::sendChange( id, data );
+      } else // not started (e.g. executable not found)
+      {
+          data.setHostname();
+          KStartupInfo::sendFinish( id, data );
+      }
       KStartupInfo::resetStartupEnv();
   }
@@ -517,4 +524,5 @@ static pid_t runTempService( const KServ
       args = KRun::processDesktopExec(_service, _urls, false, tempFiles);
   }
+  kdDebug(7010) << "runTempService: KProcess args=" << args << endl;
 
   KProcess * proc = new KProcess;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic