Skip to content

Fix Windows 10 LTSC 2021 Compatibility#2242

Merged
d2phap merged 2 commits into
d2phap:developfrom
nomoemptypointer:develop
Dec 19, 2025
Merged

Fix Windows 10 LTSC 2021 Compatibility#2242
d2phap merged 2 commits into
d2phap:developfrom
nomoemptypointer:develop

Conversation

@nomoemptypointer

@nomoemptypointer nomoemptypointer commented Dec 16, 2025

Copy link
Copy Markdown
Contributor

Windows 10 LTSC 2021 and earlier Windows 10 builds do not support Control-flow Enforcement Technology (CET). Starting with .NET 9.0, CET compatibility is enabled by default, which causes ImageGlass to crash on these systems at startup.

This PR resolves the issue by explicitly disabling CET compatibility for ImageGlass.

ImageGlass is:

  • Not security-critical
  • Not exposed to untrusted native plugins or arbitrary code execution

For this application, CET provides minimal practical security benefit. Disabling CET:

  • Restores compatibility with unsupported Windows versions
  • Does not introduce instability
  • Does not reduce system-wide security, as the change applies only to this process

Reference:
https://learn.microsoft.com/en-us/dotnet/core/compatibility/interop/9.0/cet-support

@d2phap d2phap left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nomoemptypointer, can you apply the same setting for igcmd.csproject

@nomoemptypointer

nomoemptypointer commented Dec 18, 2025

Copy link
Copy Markdown
Contributor Author

I have now disabled CET Compatibility inside igcmd.csproj

Edit: I'm editing this via web as I don't have any text editor currently installed and I think GitHub for some reason reformatted the csproj, let me know if that's a issue

@d2phap d2phap left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@d2phap d2phap merged commit ca5a4f8 into d2phap:develop Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants