diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-07-16 12:03:28 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-07-16 12:03:28 -0400 |
| commit | c1ad234b7993e294a8342242bc0ce4a649ca5479 (patch) | |
| tree | 902fcebb9b821107af06264e59029a66aeb0975f /MediaBrowser.ServerApplication/App.xaml.cs | |
| parent | 682dea1d70aa3cb635f726e853df12772033c531 (diff) | |
Added album soundtrack links
Diffstat (limited to 'MediaBrowser.ServerApplication/App.xaml.cs')
| -rw-r--r-- | MediaBrowser.ServerApplication/App.xaml.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.ServerApplication/App.xaml.cs b/MediaBrowser.ServerApplication/App.xaml.cs index db923e5e2..db008c3d9 100644 --- a/MediaBrowser.ServerApplication/App.xaml.cs +++ b/MediaBrowser.ServerApplication/App.xaml.cs @@ -38,7 +38,9 @@ namespace MediaBrowser.ServerApplication { bool createdNew; - _singleInstanceMutex = new Mutex(true, @"Local\" + typeof(App).Assembly.GetName().Name, out createdNew); + var runningPath = Process.GetCurrentProcess().MainModule.FileName.Replace(Path.DirectorySeparatorChar.ToString(), string.Empty); + + _singleInstanceMutex = new Mutex(true, @"Local\" + runningPath, out createdNew); if (!createdNew) { |
