Merge pull request #720 from tgstation/719-LolInheritByDefault

Launch DreamDaemon using ShellExecute on Windows
This commit is contained in:
Jordan Brown
2018-09-25 20:12:23 -04:00
committed by GitHub
@@ -5,6 +5,7 @@ using Newtonsoft.Json.Serialization;
using System;
using System.Globalization;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
@@ -209,8 +210,10 @@ namespace Tgstation.Server.Host.Components.Watchdog
SecurityWord(securityLevelToUse),
parameters);
//See #719
var noShellExecute = !RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
//launch dd
var process = processExecutor.LaunchProcess(byondLock.DreamDaemonPath, basePath, arguments, noShellExecute: true);
var process = processExecutor.LaunchProcess(byondLock.DreamDaemonPath, basePath, arguments, noShellExecute: noShellExecute);
try
{
networkPromptReaper.RegisterProcess(process);