Skip to content

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

@tuxinaut

Description

@tuxinaut

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions