-
-
Notifications
You must be signed in to change notification settings - Fork 447
Auto re-index for Program and Bookmark plugins #967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Plugins/Flow.Launcher.Plugin.BrowserBookmark/ChromiumBookmarkLoader.cs
Outdated
Show resolved
Hide resolved
Plugins/Flow.Launcher.Plugin.BrowserBookmark/Commands/BookmarkLoader.cs
Outdated
Show resolved
Hide resolved
Plugins/Flow.Launcher.Plugin.BrowserBookmark/FirefoxBookmarkLoader.cs
Outdated
Show resolved
Hide resolved
|
||
public static void WatchPackageChange() | ||
{ | ||
if (Environment.OSVersion.Version.Build >= 19041) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this condition needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same to uwp apps. Probably using main version higher than 10 is also good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry i am not following, main version as in Windows 10? why higher than 10 is good though?
if (!(_win32s.Any() && _uwps.Any())) | ||
await indexTask; | ||
|
||
Win32.WatchProgramUpdate(_settings); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you not also need to add WatchProgramUpdate for UWP apps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh I forget? I will check soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah no. UWP are watched by package update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please see comments
Lets remove this mechanism
|
Should we reindex on startup at background? |
Finally get some workable free time. I will check now. |
The firefox bookmark works partially when the bookmark is added to bookmark folder that is not the bookmark tool bar? I don't know how firefox handle that but if the bookmark is added to the toolbar, the sqlite file won't change. |
@jjw24 I forget to reset cache when reindex. Now it should work (at least work for uwp). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So after testing with the latest changes I am finding:
- Chrome bookmarks work
- Edge bookmarks work
- Installing & removing Win32 apps work
- Apps (UWP) installed from Microsoft Store do not work
- Firefox boomarks does not work at all
@taooceros getting close :)
@jjw24 what's your uwp version? We are using a relatively new winrt api so probably that won't work in earlier version? (just similar to the windows notification) |
I tested with Snip & Sketch via Microsoft's App Store. Does it work for you? What UWP app did you test? |
Sorry I mean the windows version. |
I test it with netflix. |
Would you mind take a debug on whether the events are triggered if that doesn't work? |
I wonder probably we can make the reindex faster by deleting the uninstalled entry/adding new entry. But the current way is good enough for now since it is unlikely that it will requires a lot of resources. |
With Firefox (v104.0) bookmarks, I have found when a bookmark is added or removed, the surest way that places.sqlite will get updated is when you close all Firefox browser. Occasionally it may update after adding/ removing a bookmark. Chrome and Edge on the other hand their file get updated almost instantly after adding/removing a bookmark. This is fine with Firefox as it is beyond our control when the places.sqlite file get updated. |
Tested on Windows [Version 10.0.19044.1949]:
|
Watch Program and Bookmark file changes to trigger re-index
Tested on Windows [Version 10.0.19044.1949]:
Close #688 #1336