Bug 510562

Summary: "Open Containing Folder" doesn't work as expected on Windows
Product: [Applications] okular Reporter: luca <luca.matteini.de>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 25.04.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description luca 2025-10-13 12:02:33 UTC
SUMMARY
Selecting to open the containing folder of a PDF document opens only the root directory ("This PC").

STEPS TO REPRODUCE
1. Open a PDF file from Windows Explorer
2. Associate Okular to predefined operation on file, if not already so
3. While viewing the document in Okular, click on the main menu, File > Open Containing Folder

OBSERVED RESULT
 A new window of Windows Explorer opens on the "This PC" starting point

EXPECTED RESULT
The new window should be directed to the original path of the document

SOFTWARE/OS VERSIONS
Windows: Windows 11 Pro, 25H2
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
- The behavior is the same with both local files and network files.
- Clicking on File > Properties, the document's path is shown with forward slashes, instead of Windows backslashes; this could lead to failing paths, depending on the file/directory access functions.