Skip to content

BUG: UnauthorizedAccessException for Cache Files #3716

Open
@VelonWoo

Description

@VelonWoo

Checks

  • I have checked that this issue has not already been reported.

  • I am using the latest version of Flow Launcher.

  • I am using the prerelease version of Flow Launcher.

Problem Description

Flow Launcher version: 1.20.0
OS Version: 22631.4751
IntPtr Length: 8
x64: True

Python Path:
Node Path:

Date: 06/12/2025 20:26:20
Exception:
System.UnauthorizedAccessException: Access to the path 'D:\Program Files\FlowLauncher\app-1.20.0\UserData\Cache\Image.cache' is denied.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode) at Flow.Launcher.Infrastructure.Storage.BinaryStorage1.TryLoadAsync(T defaultData) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Storage\BinaryStorage.cs:line 69
at Flow.Launcher.Infrastructure.Image.ImageLoader.LoadStorageToConcurrentDictionaryAsync() in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Image\ImageLoader.cs:line 98
at Flow.Launcher.Infrastructure.Image.ImageLoader.InitializeAsync() in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Image\ImageLoader.cs:line 42
at Flow.Launcher.App.b__14_0() in C:\projects\flow-launcher\Flow.Launcher\App.xaml.cs:line 199
at Flow.Launcher.Infrastructure.Stopwatch.InfoAsync(String className, String message, Func`1 action, String methodName) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 53
at Flow.Launcher.App.OnStartup(Object sender, StartupEventArgs e) in C:\projects\flow-launcher\Flow.Launcher\App.xaml.cs:line 161
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

To Reproduce

  1. ...
  2. ...
  3. ...

Screenshots

No response

Flow Launcher Version

1.20.0

Windows Build Number

10.0.22631.4751

Error Log

2025-06-12.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Waiting for responseWaiting for poster to respond to Team messagebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions