Bug 506845

Summary: mpv can't open video files over sftp if the filename contains square brackets
Product: [Applications] dolphin Reporter: ugjka <ugis>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version First Reported In: 25.04.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screencast of the bug

Description ugjka 2025-07-10 07:04:08 UTC
Created attachment 183118 [details]
screencast of the bug

SUMMARY:
mpv can't open video files over sftp if the filename contains square brackets, remove the square brackets and the video then opens just fine. (The problem doesn't exist when you play local files)

STEPS TO REPRODUCE:
1. Open sftp share in dolphin
2. Have a video with square brackets in the filename there
3. Try opening it with mpv video player

OBSERVED RESULT: mpv tries to open the video but doesn't and exits

EXPECTED RESULT: mpv should play the video


SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.5-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 64 GiB of RAM (54,7 GiB usable)
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUS

ADDITIONAL INFORMATION: see the attachment for a screencast of the bug
Comment 1 ugjka 2025-07-12 12:37:38 UTC
Hmm, when I use Flatpak version of mpv, there is no problem