From a4749d376a1f7d2d5104a9ac95e283d800baa073 Mon Sep 17 00:00:00 2001 From: Arjun Balgovind <32061677+arjunbalgovind@users.noreply.github.com> Date: Fri, 27 Mar 2020 13:52:54 -0700 Subject: [PATCH] Removed registry writing code (#1748) --- .../ViewModels/WindowWalkerViewModel.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/modules/windowwalker/app/Window Walker/ViewModels/WindowWalkerViewModel.cs b/src/modules/windowwalker/app/Window Walker/ViewModels/WindowWalkerViewModel.cs index 57b3f1ba5a..8e788fa74b 100644 --- a/src/modules/windowwalker/app/Window Walker/ViewModels/WindowWalkerViewModel.cs +++ b/src/modules/windowwalker/app/Window Walker/ViewModels/WindowWalkerViewModel.cs @@ -160,18 +160,6 @@ namespace WindowWalker.ViewModels public WindowWalkerViewModel(System.Windows.Window mainWindow) { - // The path to the key where Windows looks for startup applications - RegistryKey rkApp = Registry.CurrentUser.OpenSubKey( - @"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true); - - // Path to launch shortcut - string startPath = Environment.GetFolderPath(Environment.SpecialFolder.Programs) - + @"\WindowWalker\WindowWalker.appref-ms"; - - rkApp.SetValue("WindowWalker", startPath); - - rkApp.Close(); - SearchController.Instance.OnSearchResultUpdate += SearchResultUpdated; OpenWindows.Instance.UpdateOpenWindowsList(); Hwnd = new WindowInteropHelper(mainWindow).Handle;