Skip to content

VLSub is broken until you exit VLC at least once

  1. It seems VLSub can't work if the %appdata%\vlc\ folder doesn't exist.
  2. This folder doesn't exist until you enter and exit VLC at least once (checked via the portable (i.e. 7zip/Zip) version. There's a chance the installer version perhaps creates it beforehand).

Checked in the latest version 3.0.16 over Windows 10.

Steps to produce

  1. If it already exists, manually delete the %appdata%\vlc\ folder (back up first, if you want).
  2. Enter VLC.
  3. Activate VLSub.

Expected behavior

Open the VLSub window.

Actual outcome

Nothing happens, as if you never clicked VLSub (even though there's suddenly a checkbox next to it).

Further information

Basically VLSub tries to create a %appdata%\vlc\lua\extensions\userdata\vlsub\ folder, but fails when there's no %appdata%\vlc\.

The solution should be:

  1. Don't create %appdata%\vlc\lua\extensions\userdata\vlsub\ in the first place, before there are changes that are actually needed to be saved.
  2. If you insist to create it anyway, even though it's just the default settings, then create it even if there's no %appdata%\vlc\ folder.
Edited by Lior
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information