mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-08 14:10:50 -07:00
Fully finished #27 just need to test it!
This commit is contained in:
parent
db00326a9c
commit
e49b160500
11 changed files with 254 additions and 139 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue