Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't save subtitles #70

Open
damianatorrpm opened this issue Apr 14, 2019 · 8 comments
Open

can't save subtitles #70

damianatorrpm opened this issue Apr 14, 2019 · 8 comments

Comments

@damianatorrpm
Copy link

works with non-flatpak vlc
doesnt work with flatpak vlc
vlc is not allowed to save the subtitle file with flatpak

@MatMaul
Copy link
Collaborator

MatMaul commented Jun 24, 2019

@damianatorrpm After a quick investigation it seems to be a bug when the folder where it stores the subs is not already created.
Can you try to do mkdir ~/.var/app/org.videolan.VLC/cache/vlc ? It fixes the problem for me. I'll work on a real fix for VLC.

@damianatorrpm
Copy link
Author

@MatMaul Thank you for the response. I don't know why but it is fixed in fedora rawhide with latest VLC flatpak for me anyways.

@MatMaul
Copy link
Collaborator

MatMaul commented Jul 3, 2019

@damianatorrpm can you try to do rm ~/.var/app/org.videolan.VLC/cache/vlc and report the result ? It should break it again.
This folder was probably created by the use of another functionality of VLC using it, hence the fact that it works for you now.
Just do a mkdir to get back to a working state ;)
Thanks.

@damianatorrpm
Copy link
Author

damianatorrpm commented Jul 30, 2019

@MatMaul Yes it breaks it again!
recreating the folder, restarting vlc, and trying again fixes the issue ones again.

Thank you for the solution.

@nazar2sfive
Copy link

mkdir ~/.var/app/org.videolan.VLC/cache/vlc

it solved for me in clear linux.

@LargePrime
Copy link

mkdir ~/.var/app/org.videolan.VLC/cache/vlc

it solved for me in clear linux.

thanks for the fix

@ItaloQualisoni
Copy link

Thanks! This has solved my issue too for flatpak VLC in Fedora 32

mkdir ~/.var/app/org.videolan.VLC/cache/vlc

it solved for me in clear linux.

@pacho2
Copy link

pacho2 commented May 25, 2020

Supposedly it should create the needed paths... but it fails.

  openSub.conf.dirPath = vlc.config.userdatadir()
  local subdirs = { "lua", "extensions", "userdata", "vlsub" }
  for _, dir in ipairs(subdirs) do
    local res, err = vlc.io.mkdir( openSub.conf.dirPath .. slash .. dir, "0700" )
    if res ~= 0 and err ~= vlc.errno.EEXIST then
      vlc.msg.warn("Failed to create " .. openSub.conf.dirPath .. slash .. dir )
      return false
    end
    openSub.conf.dirPath = openSub.conf.dirPath .. slash .. dir
  end

That is from share/lua/extensions/VLSub.lua from vlc-3.0.10 sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants