ImageGlass selects wrong file in the gallery when launched with a 8.3 short path
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 14.4k
- Forks
- 752
- Avg merge
- 10d 14h
- Merged PRs (30d)
- 1
Description
Windows OS version
Windows 11 24H2
ImageGlass version
9.3.2.520
ImageGlass release
Classic
1️⃣ Steps to reproduce
Try to open an image file in a folder with multiple files (jpeg) via command line.
If the path to the image file is a full path, everything is ok.
If the path is a 8.3 short path ImageGlass "selects" the wrong image in the gallery (but displays the correct image in the main window). This is also a problem, when you for example want to print the image, it prints the wrong one. (The wrong selected in the gallery...not the image from the main window)
2️⃣ Actual behavior
Working:
C:\Program Files\ImageGlass\ImageGlass.exe "C:\Users\Test\Temp Test\img10 jslkdjsa djsakl4.jpg"
Not working:
C:\Program Files\ImageGlass\ImageGlass.exe "C:\Users\Test\TEMPTE1\IMG10J1.JPG"
-> Please see screenshot for the correct path. GitHub displays this path wrong.
3️⃣ Expected behavior
There should be no difference when open a file with a full path or a 8.3 short path in ImageGlass.
4️⃣ Screenshots / Video / Sample image file
Open file with full path (working ok):
Open file with 8.3 short path (not ok):
5️⃣ Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue through the command-line entry point with both the full path and the Windows 8.3 short path, then trace how the opened path is matched to the gallery selection. Done means the same image remains selected and is printed correctly for either path form.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100