mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-15 22:21:04 +00:00
Update ServiceMain.cs
This commit is contained in:
parent
8734f3f24a
commit
4b63596c3a
|
@ -244,11 +244,21 @@ namespace WelsonJS.Service
|
||||||
scriptControl.Reset();
|
scriptControl.Reset();
|
||||||
scriptControl.AddCode(scriptText);
|
scriptControl.AddCode(scriptText);
|
||||||
|
|
||||||
// initialize
|
// make the start arguments
|
||||||
Log(DispatchServiceEvent("start", new string[]
|
string[] startArguments;
|
||||||
|
if (Environment.UserInteractive)
|
||||||
{
|
{
|
||||||
Environment.UserInteractive.ToString().ToLower()
|
startArguments = new string[args.Length + 1];
|
||||||
}));
|
args.CopyTo(startArguments, 0);
|
||||||
|
startArguments[args.Length] = "--user-interactive";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
startArguments = args;
|
||||||
|
}
|
||||||
|
|
||||||
|
// initialize
|
||||||
|
Log(DispatchServiceEvent("start", startArguments));
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user