I want to set sumatra PDF as my default pdf viewer. I had Microsoft edge previously but it is a headache since it keeps changing my defaults whenever I restart my computer. I have removed microsoft edge and all of its component. but still, whenver I restart the computer, the pdfs are in white icon in opus, saying the application not found. I have already set the file type pdf to open by default with sumatra.exe in dopus. still it keeps showing the error after restart.
The only way right now is to go to default apps in windows setting and change it to sumatra everytime after restart. it is getting really annoying. any workaround or something that needs to be change in script which can override this?
It really depends on what is breaking the file type and how it's doing that.
Assuming it affects File Explorer as well as Opus, it's going to be something outside of Opus.
Uninstalling any unwanted PDF software (or all PDF software, if that doesn't work), then (re)installing the PDF software you wanted often fixes things. But it is going to depend on what the software is doing to the registry and how the different tools are fighting over the file type.