ACAT.Extensions.Default.FunctionalAgents.LaunchAppAgent.LaunchAppAgent.launchProcess C# (CSharp) Method

launchProcess() private method

Launch the specified app
private launchProcess ( ACAT.Extensions.Default.FunctionalAgents.LaunchAppAgent.AppInfo info ) : bool
info ACAT.Extensions.Default.FunctionalAgents.LaunchAppAgent.AppInfo info about the app
return bool
        private bool launchProcess(AppInfo info)
        {
            bool retVal = true;

            var startInfo = new ProcessStartInfo
            {
                FileName = info.Path,
                Arguments = normalizeCommandLine(info.CommandLine)
            };

            try
            {
                var process = Process.Start(startInfo);
                if (process == null)
                {
                    retVal = false;
                }
                else
                {
                    waitForProcessAndActivate(process);
                }
            }
            catch (Exception ex)
            {
                Log.Debug(ex.ToString());
                retVal = false;
            }

            return retVal;
        }