diff --git a/Flow.Launcher.Core/Configuration/Portable.cs b/Flow.Launcher.Core/Configuration/Portable.cs index d08c9ae2c..c46a6102d 100644 --- a/Flow.Launcher.Core/Configuration/Portable.cs +++ b/Flow.Launcher.Core/Configuration/Portable.cs @@ -172,7 +172,7 @@ namespace Flow.Launcher.Core.Configuration "would you like to move it to a different location?", string.Empty, MessageBoxButton.YesNo) == MessageBoxResult.Yes) { - FilesFolders.OpenLocationInExporer(Constant.RootDirectory); + FilesFolders.OpenPath(Constant.RootDirectory); Environment.Exit(0); } diff --git a/Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs b/Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs index 5c0c1bc7a..f9888b78c 100644 --- a/Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs +++ b/Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Diagnostics; using System.IO; using System.Windows; @@ -110,9 +110,9 @@ namespace Flow.Launcher.Plugin.SharedCommands return File.Exists(filePath); } - public static void OpenLocationInExporer(string location) + public static void OpenPath(string fileOrFolderPath) { - var psi = new ProcessStartInfo { FileName = FileExplorerProgramName, UseShellExecute = true, Arguments = location }; + var psi = new ProcessStartInfo { FileName = FileExplorerProgramName, UseShellExecute = true, Arguments = fileOrFolderPath }; try { if (LocationExists(fileOrFolderPath) || FileExits(fileOrFolderPath)) diff --git a/Flow.Launcher/SettingWindow.xaml.cs b/Flow.Launcher/SettingWindow.xaml.cs index af8a148da..609d9e345 100644 --- a/Flow.Launcher/SettingWindow.xaml.cs +++ b/Flow.Launcher/SettingWindow.xaml.cs @@ -241,7 +241,7 @@ namespace Flow.Launcher { var directory = _viewModel.SelectedPlugin.PluginPair.Metadata.PluginDirectory; if (!string.IsNullOrEmpty(directory)) - FilesFolders.OpenLocationInExporer(directory); + FilesFolders.OpenPath(directory); } } #endregion diff --git a/Plugins/Flow.Launcher.Plugin.Folder/Main.cs b/Plugins/Flow.Launcher.Plugin.Folder/Main.cs index 4283fe7f7..74ce0c92d 100644 --- a/Plugins/Flow.Launcher.Plugin.Folder/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Folder/Main.cs @@ -103,7 +103,7 @@ namespace Flow.Launcher.Plugin.Folder { try { - FilesFolders.OpenLocationInExporer(path); + FilesFolders.OpenPath(path); return true; } catch (Exception ex) @@ -255,7 +255,7 @@ namespace Flow.Launcher.Plugin.Folder { try { - FilesFolders.OpenLocationInExporer(filePath); + FilesFolders.OpenPath(filePath); } catch (Exception ex) { @@ -286,7 +286,7 @@ namespace Flow.Launcher.Plugin.Folder Score = 500, Action = c => { - FilesFolders.OpenLocationInExporer(search); + FilesFolders.OpenPath(search); return true; } };