Skip to content

QuickLook may appear unable to preview docx documents #2025

Open

Description

@Yoozzzzzz

When installing WPS Office at the same time, QuickLook may appear unable to preview docx documents, while other documents can be previewed. The default opening method is also not set to WPS Office to open files

Activity

  1. hoyin-law commented on Nov 2, 2026

    @hoyin-law

    Thanks for the report. I looked into this and it is an interesting one:

    QuickLook is a 64-bit process, while WPS Office is a 32-bit application and registers its preview handlers (WPS文字 预览器, WPS表格 预览器, WPS演示 预览器) only in the 32-bit registry view (HKEY_CLASSES_ROOT\WOW6432Node\CLSID). As a result:

    1. CLSIDRegister.GetName() cannot read the handler's display name (the CLSID does not exist in the 64-bit view), so CanHandle() returns false and pressing Space does nothing.
    2. Even if the check passed, the handler could not be activated (REGDB_E_CLASSNOTREG) for the same reason.

    I opened #2051 which mirrors such a 32-bit-only preview handler registration into the 64-bit view for the current user only (HKEY_CURRENT_USER\Software\Classes\CLSID, no elevation, reversible), with a new FixPreviewHandlerRegistration setting to opt out.

    Meanwhile, a workaround for the current release: create these three keys under HKEY_CURRENT_USER\Software\Classes\CLSID (64-bit view) with the display name as the default value, InprocHandler32 = ole32.dll, and LocalServer32 pointing to wps.exe /prometheus /wps|/et|/wpp /Preview. QuickLook does not need to be restarted.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions