From 036257eeaa9f597efbf26999db674d26f1afdae2 Mon Sep 17 00:00:00 2001
From: Patrick Simpson
Date: Thu, 14 Sep 2017 15:21:32 +0300
Subject: [PATCH] Fix for restarting if there's a space in the profile name
---
src/AcaciaZPushPlugin/OutlookRestarter/OutlookRestarter.cs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/AcaciaZPushPlugin/OutlookRestarter/OutlookRestarter.cs b/src/AcaciaZPushPlugin/OutlookRestarter/OutlookRestarter.cs
index f8617b7..b426472 100644
--- a/src/AcaciaZPushPlugin/OutlookRestarter/OutlookRestarter.cs
+++ b/src/AcaciaZPushPlugin/OutlookRestarter/OutlookRestarter.cs
@@ -76,10 +76,14 @@ namespace OutlookRestarter
string path = procArgs[i];
HandleCleanKoe(path);
}
- else
+ else if (procArgs[i].StartsWith("/"))
{
useArgs.Add(procArgs[i]);
}
+ else
+ {
+ useArgs.Add("\"" + procArgs[i] + "\"");
+ }
}
string argsString = string.Join(" ", useArgs);
Logger.Instance.Debug(typeof(OutlookRestarter), "Parsed arguments: {0}", argsString);