diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-19 23:53:15 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-19 23:53:15 -0500 |
| commit | 13e4b2a6a76df957a85e444822c816b42f2bb60c (patch) | |
| tree | 35140e9b5447937ad70744c6605b9c890cb342a2 /MediaBrowser.ServerApplication/Native/Autorun.cs | |
| parent | 120c8bcbb9381086bf9171eae1ba2df9b3c11bde (diff) | |
add search methods to remote metadata providers
Diffstat (limited to 'MediaBrowser.ServerApplication/Native/Autorun.cs')
| -rw-r--r-- | MediaBrowser.ServerApplication/Native/Autorun.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MediaBrowser.ServerApplication/Native/Autorun.cs b/MediaBrowser.ServerApplication/Native/Autorun.cs index d1c02db84..0262f711e 100644 --- a/MediaBrowser.ServerApplication/Native/Autorun.cs +++ b/MediaBrowser.ServerApplication/Native/Autorun.cs @@ -16,15 +16,17 @@ namespace MediaBrowser.ServerApplication.Native { var shortcutPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu), "Media Browser 3", "Media Browser Server.lnk"); + var startupPath = Environment.GetFolderPath(Environment.SpecialFolder.Startup); + if (autorun) { //Copy our shortut into the startup folder for this user - File.Copy(shortcutPath, Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Startup), Path.GetFileName(shortcutPath) ?? "MBstartup.lnk"), true); + File.Copy(shortcutPath, Path.Combine(startupPath, Path.GetFileName(shortcutPath) ?? "MBstartup.lnk"), true); } else { //Remove our shortcut from the startup folder for this user - File.Delete(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Startup), Path.GetFileName(shortcutPath) ?? "MBstartup.lnk")); + File.Delete(Path.Combine(startupPath, Path.GetFileName(shortcutPath) ?? "MBstartup.lnk")); } } } |
