vlc regard the file path as a URL,so the subtitle won't be loaded automatically
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vlc (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Normally vlc will try to load subtitle automatically,for example,if you put example.avi and example.srt in the same directory,and you double click on example.avi,and example.srt will be loaded.
But vlc will regard the file path as a URL,and encoded it(you can find some details in RFC 1738).
For example,if you have a file
/home/yegle/
,and you have a correspond subtitle file called [example].srt.You double click on [example].avi and you will find /home/yegle/
At first I think this is because vlc cannot deal with non-ascii characters,but later I find when I drag and drop [example].avi to vlc window,the subtitle loaded just fine.So this bug will happen when you double click on a file contains non-ascii characters.
sorry for my poor English.
:-)
I found the reason.The default Exec key of the vlc.desktop file(located in /usr/share/ applications) have a %U argument,so the full file path passed to vlc will encoded as a URL automatically.To solve this problem,change it to %F,and everything will be fine.