diff --git a/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs b/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs index 9764a7ab2..802f09492 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs @@ -64,7 +64,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings { return Path.GetFullPath(Path.Combine(Constant.ProgramDirectory, path)); } - catch (Exception ex) when (ex is ArgumentException || + catch (System.Exception ex) when (ex is ArgumentException || ex is NotSupportedException || ex is PathTooLongException) {