i run the following code and instead of running the package exe (just some command line stuff wrote in .NET) i notice another instance of the existing app
does anyone had this and know how to solve it?
BTW, i printed out the package exe path and it looks OK but still there's a process with the same app name instead of the exec
if (string.IsNullOrEmpty(package_exe_path)) return true; Console.WriteLine(package_exe_path); var psi = new ProcessStartInfo { FileName = package_exe_path, Arguments = arguments, UseShellExecute = false, CreateNoWindow = true, ErrorDialog = false }; try { var p = Process.Start(psi); if (p == null) { return false; } }
Answers
I am having difficulty understanding this question. Are you trying to use process to launch a bundle? If you are, then that'd create a second instance of the application, like open -n would on the command line.
You likely need to use an API from:
https://developer.apple.com/reference/appkit/nsworkspace?language=objc
problem that bundling not allowing me to pass arguments to the processes..
I have to open notepad file so i was using process.start it may work .
But what is the namespace for process class & can me send me the link to download