We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f244812 + 693636c commit 4b41578Copy full SHA for 4b41578
Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs
@@ -36,6 +36,26 @@ public void Init(PluginInitContext context)
36
_faviconCacheDir = Path.Combine(
37
context.CurrentPluginMetadata.PluginCacheDirectoryPath,
38
"FaviconCache");
39
+
40
+ try
41
+ {
42
+ if (Directory.Exists(_faviconCacheDir))
43
44
+ var files = Directory.GetFiles(_faviconCacheDir);
45
+ foreach (var file in files)
46
47
+ var extension = Path.GetExtension(file);
48
+ if (extension is ".db-shm" or ".db-wal" or ".sqlite-shm" or ".sqlite-wal")
49
50
+ File.Delete(file);
51
+ }
52
53
54
55
+ catch (Exception e)
56
57
+ Context.API.LogException(ClassName, "Failed to clean up orphaned cache files.", e);
58
59
60
LoadBookmarksIfEnabled();
61
}
0 commit comments