QL-Win / QL-Win/QuickLook

PDF QuickLook closes automatically on the first attempt after system boot

Open
#1,851 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

pending
Dominant language
C#
Stars
24.7k
Forks
1.3k
Avg merge
4d 7h
Merged PRs (30d)
1

Description

When I try to preview a PDF file by pressing the Space key, the QuickLook window opens but does not stay on top. Instead, it closes automatically after about 0.5 seconds.

Initially, when the "Always on Top" option was disabled, I thought I simply had to press the Space key twice to open a PDF. However, after enabling the "Always on Top" option, I realized that the window was actually opening and then immediately closing itself.

To reproduce,

Boot the computer.

Select a PDF file and press Space to open QuickLook.

The window appears briefly and then disappears.

Press Space again, and it works normally from the second attempt onwards.

This issue consistently occurs the first time I open a PDF after booting the system. Once it has happened, QuickLook works fine for a while, even if I restart the QuickLook application itself. However, the issue reappears after some time has passed.

When the window closes, it disappears silently. There are no crash reports, error messages, or logs indicating a failure.

I am using the built-in PDF plugin and do not have any other PDF plugins installed. I prefer using the default viewer and would like to continue doing so.

Has anyone else experienced this issue? What could be the cause of this behavior?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files, tests, or entry points are named. First reproduce the first-PDF-after-boot behavior with the built-in PDF plugin, then inspect the available application diagnostics to determine why the QuickLook window closes; done means identifying and fixing the cause and confirming later launches remain stable.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.