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

openshot-qt usage of animated title and title isn't possible #48591

Closed
tuxinaut opened this issue Oct 16, 2018 · 1 comment
Closed

openshot-qt usage of animated title and title isn't possible #48591

tuxinaut opened this issue Oct 16, 2018 · 1 comment

Comments

@tuxinaut
Copy link
Contributor

tuxinaut commented Oct 16, 2018

Issue description

Usage of Animated Title or Title isn't possible because of file permission errors!

Openshot-qt uses templates to create Titles or Animated Titles those templates will be on the fly copied from the application directory to the users home directory (.openshot-qt).

The problem is the templates must have writable permissions which isn't the case under nixos. Openshot-qt only copies those templates with the file permissions from the installed files.

Question: Should upstream fix it or within nixpkgs

Steps to reproduce

  1. Install openshot-qt
  2. Start openshot-qt
  3. Try to create a Animated Title or Title
  4. openshot-qt gets stuck

Technical details

 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.75, NixOS, 18.03.133308.e85e0c2cafd (Impala)`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0.4`
 - channels(root): `"nixos-18.03.133308.e85e0c2cafd, unstable-19.03pre155123.32bcd72bf28"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`

Error message

...
blender_listview:INFO btnRefresh_clicked
  exceptions:ERROR Unhandled Exception
Traceback (most recent call last):
  File "/nix/store/rccadschifg42351f0jqjpmzj9ixqaqj-openshot-qt-2.4.2/lib/python3.6/site-packages/openshot_qt/windows/views/blender_listview.py", line 197, in currentChanged
    self.init_slider_values()
  File "/nix/store/rccadschifg42351f0jqjpmzj9ixqaqj-openshot-qt-2.4.2/lib/python3.6/site-packages/openshot_qt/windows/views/blender_listview.py", line 289, in init_slider_values
    self.btnRefresh_clicked(None)
  File "/nix/store/rccadschifg42351f0jqjpmzj9ixqaqj-openshot-qt-2.4.2/lib/python3.6/site-packages/openshot_qt/windows/views/blender_listview.py", line 296, in btnRefresh_clicked
    self.Render(preview_frame_number)
  File "/nix/store/rccadschifg42351f0jqjpmzj9ixqaqj-openshot-qt-2.4.2/lib/python3.6/site-packages/openshot_qt/windows/views/blender_listview.py", line 558, in Render
    self.inject_params(target_script, frame)
  File "/nix/store/rccadschifg42351f0jqjpmzj9ixqaqj-openshot-qt-2.4.2/lib/python3.6/site-packages/openshot_qt/windows/views/blender_listview.py", line 529, in inject_params
    with codecs.open(path, "w", encoding="UTF-8") as f:
  File "/nix/store/1c4zshbxizcsvyj46fwf5jj10h41wf6i-python3-3.6.6/lib/python3.6/codecs.py", line 897, in open
    file = builtins.open(filename, mode, buffering)
PermissionError: [Errno 13] Permission denied: '/home/tuxinaut/.openshot_qt/blender/8c5ea4de-d188-11e8-b42d-9cb6d0e56e2f/glare.py'
@peti
Copy link
Member

peti commented Sep 3, 2019

I have the same issue. OpenShot is pretty much unusable as-is. :-(

I believe that upstream should not rely on those files having +w permissions when they copy them, i.e. they should make sure their locally created copy gets write permissions after it's been created.

EDIT: OpenShot/openshot-qt#2972

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

2 participants