crschnick / pdx_unlimiter

A smart savegame manager, editor, and toolbox for all current major Paradox Grand Strategy games.
https://discord.gg/BVE4vxqFpU
GNU General Public License v3.0
230 stars 23 forks source link

how to change default file associations (or prevent pdxu from making itself default in first place)? #110

Closed Spacewolf4 closed 11 months ago

Spacewolf4 commented 1 year ago

OK, so. Pdx-U makes itself the default file association for several file extensions used by paradox games.

For extensions like .hoi4, .ck3, .eu4, this makes sense, no problem.

But .sav? .txt? Those are used by way more than just Paradox games. How do I switch it back in Win 11, and is there a way to stop the windows installer from making it the default in the first place?

crschnick commented 1 year ago

The installer registers all default file types for paradox games, but not .txt. What it also does is advertise the mime-types, so maybe your OS lists pdxu as an possible txt editor as the save game mime type is text/plain but it should not use it as a default editor for that. The .sav extension registration might have been an oversight as I did not know that many other games also use that one.

Right now there is no way to tell the installer to not register the file extensions. But it should be possible to just set your preferred program to be the default one for a certain file type in windows. You can also of course uninstall pdxu and use the portable version instead.

The main problem is that I can't simply change the existing installer as that would reset the Microsoft SmartScreen trust level and show warnings for everyone, so I try to avoid that.

Spacewolf4 commented 1 year ago

Fair. Insofar as I have reason left to grumble, it's because "goddammit, that file extension didn't have an app associated and Windows won't let me just clear the association back to 'no association'", which isn't a this-program problem, it's a Windows interface problem.

In short, thanks for the reply.

On Sat, Sep 16, 2023, 11:06 AM Christopher Schnick @.***> wrote:

The installer registers all default file types for paradox games, but not .txt. What it also does is advertise the mime-types, so maybe your OS lists pdxu as an possible txt editor as the save game mime type is text/plain but it should not use it as a default editor for that. The .sav extension registration might have been an oversight as I did not know that many other games also use that one.

Right now there is no way to tell the installer to not register the file extensions. But it should be possible to just set your preferred program to be the default one for a certain file type in windows. You can also of course uninstall pdxu and use the portable version instead.

The main problem is that I can't simply change the existing installer as that would reset the Microsoft SmartScreen trust level and show warnings for everyone, so I try to avoid that.

— Reply to this email directly, view it on GitHub https://github.com/crschnick/pdx_unlimiter/issues/110#issuecomment-1722249260, or unsubscribe https://github.com/notifications/unsubscribe-auth/BA7FBQWA5YXIU3LMYNHXHETX2W57NANCNFSM6AAAAAA423LABM . You are receiving this because you authored the thread.Message ID: @.***>

crschnick commented 1 year ago

I think the reason why Windows is confused about the associations is that pdxu is probably the only program that correctly reports mime-types to the OS. In most cases this isn't a big issue, but e.g. web browsers care about them and then prefer pdxu.

Spacewolf4 commented 1 year ago

Exactly. (And web browsers were why I brought it up, too.) Part of my confusion is I can't even find in one place all the extensions pdxu claimed for itself.

On Sat, Sep 16, 2023, 11:27 AM Christopher Schnick @.***> wrote:

I think the reason why Windows is confused about the associations is that pdxu is probably the only program that correctly reports mime-types to the OS. In most cases this isn't a big issue, but e.g. web browsers care about them and then prefer pdxu.

— Reply to this email directly, view it on GitHub https://github.com/crschnick/pdx_unlimiter/issues/110#issuecomment-1722253469, or unsubscribe https://github.com/notifications/unsubscribe-auth/BA7FBQVQB7ESDFNVA3R5LSLX2XANBANCNFSM6AAAAAA423LABM . You are receiving this because you authored the thread.Message ID: @.***>

Spacewolf4 commented 12 months ago

Weirdly, pdxu even claims .zip?

On Sat, Sep 16, 2023 at 11:29 AM John Penta @.***> wrote:

Exactly. (And web browsers were why I brought it up, too.) Part of my confusion is I can't even find in one place all the extensions pdxu claimed for itself.

On Sat, Sep 16, 2023, 11:27 AM Christopher Schnick < @.***> wrote:

I think the reason why Windows is confused about the associations is that pdxu is probably the only program that correctly reports mime-types to the OS. In most cases this isn't a big issue, but e.g. web browsers care about them and then prefer pdxu.

— Reply to this email directly, view it on GitHub https://github.com/crschnick/pdx_unlimiter/issues/110#issuecomment-1722253469, or unsubscribe https://github.com/notifications/unsubscribe-auth/BA7FBQVQB7ESDFNVA3R5LSLX2XANBANCNFSM6AAAAAA423LABM . You are receiving this because you authored the thread.Message ID: @.***>

crschnick commented 12 months ago

Yes it is a mess because some save games are zips and some of them are text, so it advertises support for both types. If you don't want to meddle with the registry, I would just use the portable version to disable these claimed extensions.

Spacewolf4 commented 12 months ago

Understood.

On Mon, Sep 18, 2023, 6:15 AM Christopher Schnick @.***> wrote:

Yes it is a mess because some save games are zips and some of them are text, so it advertises support for both types. If you don't want to meddle with the registry, I would just use the portable version to disable these claimed extensions.

— Reply to this email directly, view it on GitHub https://github.com/crschnick/pdx_unlimiter/issues/110#issuecomment-1723118936, or unsubscribe https://github.com/notifications/unsubscribe-auth/BA7FBQWDSCPQG4VCVO5J4FTX3ANNJANCNFSM6AAAAAA423LABM . You are receiving this because you authored the thread.Message ID: @.***>

crschnick commented 11 months ago

I guess we can close this issue then even though the solution is not very satisfactory as I have no influence over mime type handling