public static DesktopApplication CreateApplication(
            string application,
            string arguments,
            string name)
        {
            if (MacDesktopApplication.IsMacApplication(application))
            {
                return(new MacDesktopApplication(application, name, isDefault: false));
            }

            var command = Runtime.ProcessService.CreateCommand(application);

            command.Arguments = arguments;
            return(new ExternalProcessDesktopApplication(command, name, isDefault: false));
        }
Exemplo n.º 2
0
 void ApplicationTextEntryChanged(object sender, EventArgs e)
 {
     argumentsTextEntry.Sensitive = !MacDesktopApplication.IsMacApplication(Application);
     UpdateButtons();
 }