aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MediaBrowser.Server.Mac/Main.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Mac/Main.cs b/MediaBrowser.Server.Mac/Main.cs
index cffa62fae..1dc975841 100644
--- a/MediaBrowser.Server.Mac/Main.cs
+++ b/MediaBrowser.Server.Mac/Main.cs
@@ -166,6 +166,16 @@ namespace MediaBrowser.Server.Mac
MenuBarIcon.Instance.Terminate();
}
+ private static string NormalizeCommandLineArgument(string arg)
+ {
+ if (arg.IndexOf(" ", StringComparison.OrdinalIgnoreCase) == -1)
+ {
+ return arg;
+ }
+
+ return "\"" + arg + "\"";
+ }
+
/// <summary>
/// Handles the UnhandledException event of the CurrentDomain control.
/// </summary>