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

Make default PDF reader doesn't work #615

Open
thany opened this Issue Sep 13, 2016 · 11 comments

Comments

Projects
None yet
3 participants
@thany
Copy link

thany commented Sep 13, 2016

Every time Sumatra starts, it asks to become the default app for PDF files. Every time, I click Yes. Every time, it doesn't do anything other than refresh my desktop icons. On top of that the "Don't ask me again" also doesn't work - if that's checked, it still asks every next time.

Edge remains the default PDF reader - it's somehow not able to change that.

Windows 10.0.14393 x64
SumatraPDF 3.1.2 x64

PS. the prerelease version doesn't work at the moment - A remote procedure call (RPC) protocol error occurred. when trying to launch the installer - so I'll have to stick with the release version for this bug report.

@SumatraPeter

This comment has been minimized.

Copy link

SumatraPeter commented Sep 20, 2016

The workaround for now is to run the program once as admin and set it as the default PDF viewer. That's the only way the setting 'sticks' and Edge doesn't steal it back.

@thany

This comment has been minimized.

Copy link
Author

thany commented Sep 20, 2016

Can you change it for a future version so that it temporarily requests elevated permissions?

The workaround doesn't work btw. I started it as administrator, it asked to make itself default, I pressed Yes, the desktop flashed, and then... Nothing. Edge is still the default.

@SumatraPeter

This comment has been minimized.

Copy link

SumatraPeter commented Sep 20, 2016

I'm not one of the developers so you'll have to wait for an official reply from them.

The workaround did work for me, but perhaps I should have been more explicit. I launched the program as admin immediately after installing it (after Windows showed me the error notification and set Edge as the default), then explicitly went to Settings > Options and clicked the button to make Sumatra my default PDF viewer. Closed the program and haven't had a problem since with PDF associations.

@TheAdmin27

This comment has been minimized.

Copy link

TheAdmin27 commented Jul 26, 2017

@SumatraPeter Thank you so much for the "detailed" fix, worked like a charm.

@SumatraPeter

This comment has been minimized.

Copy link

SumatraPeter commented Jul 26, 2017

@TheAdmin27: Glad it worked for you! FWIW if you need to, in future just point people to this document, which is a direct copy-paste of a post I made in the (old) Sumatra forum.

@kjk: I mentioned this on the muut forum but guess you didn't see my post: please fix the minor typo I made in the very last line – it should read "Set SumatraPDF as the default app...". Also, after extensive further testing I'd recommend moving the last solution (the System > Default one) up to be the second one users can try. The extra-long second solution can be shifted down to third since it should probably be the very last option users can try if the other two fail for some reason. Last but not least you might also want to fix the italics (between underscores) and bold (between asterisks) text in the current documentation to make it look like the older (and better) version.

@TheAdmin27

This comment has been minimized.

Copy link

TheAdmin27 commented Jul 28, 2017

@SumatraPeter that document is kind of handy, but for me Sumatra PDF had to be running as admin whilst setting it as default via the system default apps (just verified it again on another divice, running it once as admin and closing it before changing the Setting is not enoguh for me).

Do you have any influence/contact to the developers to add that (Run Sumatra PDF as Administrator and minimize it/leave it be) to the last Paragraph in between "If issue is still not resolved" and "Open Settings App"? Having complete instructions on the official page will certainly help some users.

Edit: Reading your tag i assume you do have some form of contact ;)

@SumatraPeter

This comment has been minimized.

Copy link

SumatraPeter commented Jul 30, 2017

@TheAdmin27: Not quite sure I understand what you're saying. To be perfectly clear, my suggestions (as echoed by the docs) involve either 1) running Sumatra as admin and setting it as the default PDF viewer via Settings > Options, or 3) setting it as the default PDF viewer via Settings app > Apps > Default apps (during which Sumatra need not be running). If solution 1) doesn't work then 3) definitely does, at least on all the systems I've tried it so far.

Also I have no form of contact with the developer besides posting here and on the forum.

@kjk: Sigh... Since Win10 is a moving target there's yet another change to be made in solution 3), namely, the Default apps section is no longer present under Settings app > System in the latest Creators Update (Win10 1703), but is now present under Settings app > Apps.

* shakes fist at Microsoft *

@TheAdmin27

This comment has been minimized.

Copy link

TheAdmin27 commented Aug 1, 2017

@SumatraPeter For me, 3) worked, but only when Sumatra PDF was running as Administrator while Setting it as Default app for .PDF in Settings > App > Default Apps. If Sumatra PDF was not running as Administrator, the initial Problem (reset to edge as Default) would occur. This was done both on my custom built PC (Windows 10 Version 1607 Build 14393.1480) and on my Surface (Windows 10 Version 1703 Build 15063.483).

I neither want to be a special snowflake nor spam this thread, but i tested and verified on both devices that Sumatra PDF needs to be currently running as Administrator for solution 3) to work for my devices.

@SumatraPeter

This comment has been minimized.

Copy link

SumatraPeter commented Aug 1, 2017

I neither want to be a special snowflake nor spam this thread, but i tested and verified on both devices that Sumatra PDF needs to be currently running as Administrator for solution 3) to work for my devices.

Hey, you tested on your systems, and I tested on mine and all the ones I administer for family (lot more than two BTW), and it's entirely possible that both our experiences were valid. TBH, it would hardly be a surprise if certain systems behaved differently based on some combination of OS version, patch level, software environment and what not. So even though it makes no sense that an app should be currently running for it to be set as the default via Win10's Settings (and indeed, that wasn't a requirement on any of my systems), we can leave it as one more tip that people can try if all else fails. :)

@kjk kjk changed the title Make default doesn't work Make default PDF reader doesn't work Aug 15, 2017

@ghost

This comment has been minimized.

Copy link

ghost commented Sep 15, 2017

Latest Windows 10 update has it not showing up in the 'Default app settings' Windows 10 settings app, and if it's not registered there, the OS doesn't like to assign file association when requested.

@SumatraPeter

This comment has been minimized.

Copy link

SumatraPeter commented Sep 17, 2017

@Lady-Luck: Works fine here. Which Windows 10 build are you using? Is it an Insider build or a non-Insider stable build?

The following screenshots were taken on Windows 10 version 1703 latest non-Insider build 15063.608 (go to Settings app > System > About to check your system):

1

2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment