Fully finished #27 just need to test it!

This commit is contained in:
tidusjar 2016-05-20 17:20:17 +01:00
parent db00326a9c
commit e49b160500
11 changed files with 254 additions and 139 deletions

View file

@ -502,7 +502,11 @@ namespace PlexRequests.UI.Modules
private Response AutoUpdate()
{
var url = Request.Form["url"];
var startInfo = new ProcessStartInfo("PlexRequests.Updater.exe") { Arguments = url};
var startInfo = Type.GetType("Mono.Runtime") != null
? new ProcessStartInfo("mono PlexRequests.Updater.exe") { Arguments = url }
: new ProcessStartInfo("PlexRequests.Updater.exe") { Arguments = url };
Process.Start(startInfo);
Environment.Exit(0);