diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs index d13e4c3b0..37b2660dc 100644 --- a/Flow.Launcher.Core/Plugin/PluginManager.cs +++ b/Flow.Launcher.Core/Plugin/PluginManager.cs @@ -183,7 +183,14 @@ namespace Flow.Launcher.Core.Plugin const string binding = "flowlauncher.py"; foreach (var subDirectory in Directory.GetDirectories(DataLocation.PluginsDirectory)) { - File.Delete(Path.Combine(subDirectory, binding)); + try + { + File.Delete(Path.Combine(subDirectory, binding)); + } + catch (Exception e) + { + API.LogDebug(ClassName, $"Failed to delete {binding} in {subDirectory}: {e.Message}"); + } } }