From b7900b22b06783fb916e3238a44edfd236a0a656 Mon Sep 17 00:00:00 2001 From: Garulf <535299+Garulf@users.noreply.github.com> Date: Fri, 7 Oct 2022 10:51:21 -0400 Subject: [PATCH] // Only convert relative paths if its a valid path --- Flow.Launcher.Plugin/Result.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher.Plugin/Result.cs b/Flow.Launcher.Plugin/Result.cs index 31ef01258..79d3635f1 100644 --- a/Flow.Launcher.Plugin/Result.cs +++ b/Flow.Launcher.Plugin/Result.cs @@ -58,7 +58,13 @@ namespace Flow.Launcher.Plugin { if (!string.IsNullOrEmpty(PluginDirectory) && !Path.IsPathRooted(value)) { - _icoPath = Path.Combine(value, IcoPath); + string absPath = Path.Combine(value, IcoPath); + // Only convert relative paths if its a valid path + if (File.Exists(absPath)) + { + _icoPath = Path.Combine(value, IcoPath); + } + } else {