-
Notifications
You must be signed in to change notification settings - Fork 516
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
Make sure copied files actually have write permissions in ~/.openshot-qt #2972
Comments
@peti The interesting thing is, we're not creating that file as a copy of the source. We're reading the source file into memory, then writing it out to a newly-created file. So, the permissions of the original shouldn't matter, I don't think. If it's being created read-only, I suspect it probably has something to do with the umask on your system. (Out of curiosity, are the
|
Aagh! Never mind, I was wrong. We do copy the file first, before modifying it. But that actually makes things even easier, we can use Python's |
OK, #2973 should now fix both the However, if you want to attempt a local fix, the fix is as simple as changing |
@ferdnyc has kindly provided a patch for our Nix-specific permission issue OpenShot/openshot-qt#2972. Fixes #32898. Fixes #48591. Related to #55683.
I applied the patch in NixOS (NixOS/nixpkgs@d7bbcdf) and the new version appears to work fine. Thank you very much for the quick fix! |
Glad to hear that worked! Reopening this only because the fix hasn't gone in yet on our end; GitHub will auto-close when the PR gets merged. |
openshot-qt copies all kinds of Python or SVG files into a temporary location, i.e.
~/.openshot_qt/blender/8f9c347a-ce4e-11e9-b006-a4c3f0b51071/lens_flare.py
. Now, on the NixOS those files are installed with0444
permissions. The originals have no+w
bit -- and consequently the copy lacks that permission and cannot be used properly by the edit. This trivial problem breaks the title generator on NixOS, among other things (NixOS/nixpkgs#48591).Would you consider adding code into oneshot-qt that simply performs a
chmod u+w
on the newly created temporary file after copying it?The text was updated successfully, but these errors were encountered: