aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/Native/BrowserLauncher.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-12-05 11:50:21 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-12-05 11:50:21 -0500
commit55a776427b97bec48a70a4b4f403b52935b620ea (patch)
tree5fc0e1feaee36df2116a4842d3eb9d27c491bbae /MediaBrowser.ServerApplication/Native/BrowserLauncher.cs
parent9e84a712ae3da9eada815e790160a17153b76d37 (diff)
Removed unused properties from BaseItem.
Diffstat (limited to 'MediaBrowser.ServerApplication/Native/BrowserLauncher.cs')
-rw-r--r--MediaBrowser.ServerApplication/Native/BrowserLauncher.cs20
1 files changed, 12 insertions, 8 deletions
diff --git a/MediaBrowser.ServerApplication/Native/BrowserLauncher.cs b/MediaBrowser.ServerApplication/Native/BrowserLauncher.cs
index 43a698434..39beee563 100644
--- a/MediaBrowser.ServerApplication/Native/BrowserLauncher.cs
+++ b/MediaBrowser.ServerApplication/Native/BrowserLauncher.cs
@@ -6,7 +6,6 @@ using MediaBrowser.Model.Logging;
using System;
using System.Diagnostics;
using System.Linq;
-using System.Windows.Forms;
namespace MediaBrowser.ServerApplication.Native
{
@@ -107,14 +106,14 @@ namespace MediaBrowser.ServerApplication.Native
private static void OpenUrl(string url, ILogger logger)
{
var process = new Process
+ {
+ StartInfo = new ProcessStartInfo
{
- StartInfo = new ProcessStartInfo
- {
- FileName = url
- },
+ FileName = url
+ },
- EnableRaisingEvents = true
- };
+ EnableRaisingEvents = true,
+ };
process.Exited += ProcessExited;
@@ -126,7 +125,12 @@ namespace MediaBrowser.ServerApplication.Native
{
logger.ErrorException("Error launching url: {0}", ex, url);
- MessageBox.Show("There was an error launching your web browser. Please check your default browser settings.");
+ Console.WriteLine("Error launching browser");
+ Console.WriteLine(ex.Message);
+
+#if !__MonoCS__
+ System.Windows.Forms.MessageBox.Show("There was an error launching your web browser. Please check your default browser settings.");
+#endif
}
}