aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ApplicationHost.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-11-21 17:15:36 -0500
committerGitHub <noreply@github.com>2017-11-21 17:15:36 -0500
commitbfe88d50576ef98d99890cde6dedf84d3cf9044f (patch)
treee45797a21eaf7d5046cdab4bc362099512e24bae /Emby.Server.Implementations/ApplicationHost.cs
parent71ff88284be60fb39a7389e0c4990c94f2207ed4 (diff)
parent77695f8abed3156de04c6bb2496c14a2ab3d90a8 (diff)
Merge pull request #3034 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index 745d83eb5..531e13123 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -2317,12 +2317,17 @@ namespace Emby.Server.Implementations
}
}
- public void LaunchUrl(string url)
+ public virtual void LaunchUrl(string url)
{
if (EnvironmentInfo.OperatingSystem != MediaBrowser.Model.System.OperatingSystem.Windows &&
EnvironmentInfo.OperatingSystem != MediaBrowser.Model.System.OperatingSystem.OSX)
{
- throw new NotImplementedException();
+ throw new NotSupportedException();
+ }
+
+ if (!Environment.UserInteractive)
+ {
+ throw new NotSupportedException();
}
var process = ProcessFactory.Create(new ProcessOptions