-
-
Notifications
You must be signed in to change notification settings - Fork 455
Fix crash when user does not have access to registry startup keys #1299
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
Instead log an error about non-critical functionality and continue on.
|
Since you are on this part of code, is it possible to refactor it to a command in the viewmodel? So it would be possible to access the IPublicAPI to show a small notice about this error. If not, I think it is possible to show the notification as well by accessing the helper directly. |
|
At the same time, if flow cannot access the registry, maybe set the auto startup as false? Thanks |
|
I did a small refactor, which makes sense especially since
|
I don't remember exactly the code, but even if it is not available, you can send the notification via the NotificationHelper https://github.com/Flow-Launcher/Flow.Launcher/blob/dev/Flow.Launcher/Notification.cs (If I recall the name correctly) ?
Maybe disable autostartup by default? And add the option for setting in the widget window, then we can simply call the set startup based on the change of the value of the field (which means we don't need code behind ui).
Maybe do it in the setter. Just don't set anything when it fails (if we use the pattern I mention before). Otherwise the other code looks good for me. Thanks |
|
I updated with Notification usage, a new string in translation. Not sure what the new string process is, so just added it to everything for now. Note: I saw that you edited |
|
I just add another closes since github don't support close issues separated by comma. |
|
Oh by the way you don't have to add the strings in every i18n files. Only added it to the en.xaml will be fine, and others will be added via the integration. |
Let me show you what I mean here in another pr. |
|
I haven't tested but this is the idea (I shall start a new pr but somehow I don't want to mess up with the git remote). |
|
@nachmore do you mind to take a quick debug on whether this work? I think it feels like a cleaner way. Then we can merge! |
Also includes better messaging (single message for registry failure)
|
Sorry for the delay, very busy period :) Found some time today; moved to the direct binding model. |
No worries. Just take your time. |
|
Ok, merged & this should be it! |
|
Thank you for the work! |
Fix crash when user does not have access to registry startup keys
* Merge pull request #1061 from Flow-Launcher/remove_winget_ci * Merge pull request #991 from Flow-Launcher/context_menu_plugin_site * Merge pull request #1080 from gissehel/caret-position-fix * Caret position fix : Include PR #1074 * Merge pull request #1283 from nachmore/dev * Merge pull request #1296 from nachmore/bug_1284 * Merge pull request #1294 from Flow-Launcher/pluginInfoMultipleActionKeyword * Merge pull request #1299 from nachmore/bug_1269 * Plugin Exception Draft (#1147) * Merge pull request #1355 from onesounds/LimitWidth * Merge pull request #1088 from Flow-Launcher/add_spanish_latin_america * Merge pull request #1387 from Flow-Launcher/fix_exception_duplicate_url_opening * Merge pull request #1390 from Flow-Launcher/issue_1371 * Merge pull request #1391 from Flow-Launcher/issue_1366
Instead log an error about non-critical functionality and continue on.
Close #1269, close #1300, close #1282, close #1281
Note:
Constant.ExecutablePathcannot benull, so also simplified theif.