Browse Source

add mac method

Luke Pulverenti 10 năm trước cách đây
mục cha
commit
6315f9b863
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 10 0
      MediaBrowser.Server.Mac/Main.cs

+ 10 - 0
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>