Catch all exceptions

This commit is contained in:
Jack251970 2026-02-21 20:34:57 +08:00
parent bfed5168f0
commit f756b71207

View file

@ -64,9 +64,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings
{
return Path.GetFullPath(Path.Combine(Constant.ProgramDirectory, path));
}
catch (System.Exception ex) when (ex is ArgumentException ||
ex is NotSupportedException ||
ex is PathTooLongException)
catch (System.Exception)
{
// If the path cannot be resolved (invalid characters, format, or too long),
// return the original path to avoid crashing the application.