diff --git a/Flow.Launcher.Plugin/Result.cs b/Flow.Launcher.Plugin/Result.cs index 9948d0ba2..399e2e13d 100644 --- a/Flow.Launcher.Plugin/Result.cs +++ b/Flow.Launcher.Plugin/Result.cs @@ -134,13 +134,16 @@ namespace Flow.Launcher.Plugin get { return _pluginDirectory; } set { - Uri uriResult; - bool IsUriScheme = Uri.TryCreate(IcoPath, UriKind.Absolute, out uriResult) - && (uriResult.Scheme == Uri.UriSchemeHttp || uriResult.Scheme == Uri.UriSchemeHttps); _pluginDirectory = value; - if (!string.IsNullOrEmpty(IcoPath) && !Path.IsPathRooted(IcoPath) && !IsUriScheme) + if (!string.IsNullOrEmpty(IcoPath) && !Path.IsPathRooted(IcoPath)) { - 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 = absPath; + } + } } }