Thanks for reply, windows bug is quite common now especially on Win11, maybe it is time to change to 3rd party viewer like Irfanview or Imagine.OK, I found out the reason. It's again caused by Microsoft's infinite incompetence.
It happens when the path or file name contains at least one space, or one of the characters +&%# or a character code >127.
Then launching the photos app required to URL-encode the file name, e.g.
ms-photos:viewer?fileName=c:\path%20to%20\file\filename.jpg
in looks like the new version of the photo viewer breaks it, now it requires the name without encoding.
ms-photos:viewer?fileName=c:\path to file\filename.jpg
which is completely illogical for an URL, and also breaks opening files from a browser!
With the wrong name, the photo viewer doesn't even return an error, it just hangs forever and has to be closed via task manager.
WTF, Microsoft, why?
Statistics: Posted by zhugecaomao — 2025-02-11, 11:59 UTC