Linux SMB shares do not work if the file path has spaces in it
Opening files from SMB shares won't work if there are spaces in the path to the shared file. VLC will repeatedly prompt SMB login (infinitely unless you click on "Cancel"), and output errors like this every time you click on "Cancel":
$ vlc "smb://USER:PASSWORD@HOST/Videos/some path/video.mp4" [...] [00007f21bc001080] smb stream error: open failed for 'HOST/ADMIN%24' (Permission denied) [00007f21a40011d0] smb stream error: open failed for 'HOST/C%24' (Permission denied) [00007f21a4006180] smb stream error: open failed for 'HOST/D%24' (Permission denied) [00007f21a4002350] smb stream error: open failed for 'HOST/E%24' (Permission denied) [00007f21a4002350] smb stream error: open failed for 'HOST/F%24' (Permission denied)
The host is a Windows 10 machine for what it's worth. Haven't tested whether this is a factor or not.
Files from paths without spaces in them work fine. Replacing all the spaces in the invocation with "%0.9.x maintenance" solves the issue. Not sure what the bug here is but possible solution might be making VLC automatically replace the spaces with %0.9.x maintenance.
This also happens when using the Media->Open network stream option in the interface.
Running Fedora 26 with VLC version:
$ vlc --version VLC media player 3.0.0-git Vetinari (revision 2.2.0-git-13711-g25320d09) VLC version 3.0.0-git Vetinari (2.2.0-git-13711-g25320d09) Compiled by mockbuild on buildvm-02.online.rpmfusion.net (Jul 31 2017 13:15:12) Compiler: gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC)