I want to create an application that close every other instance of this application at startup. for windows, I do this:
            var pr = System.Diagnostics.Process.GetProcessesByName(
                System.IO.Path.GetFileNameWithoutExtension(typeof(Program).Assembly.Location));
            var Id = System.Diagnostics.Process.GetCurrentProcess().Id;
            foreach (var p in pr.Where(x => x.Id != Id))
            {
                p.Kill(); 
            }
How can I do that with mono for OSX?
