add mac method

This commit is contained in:
Luke Pulverenti 2015-05-23 18:08:50 -04:00
parent fb48dd3487
commit 6315f9b863
1 changed files with 10 additions and 0 deletions

View File

@ -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>