[GH-ISSUE #3221] openshot.profile needs update for openshot 2.5.0 #2018

Closed
opened 2026-05-05 08:41:11 -06:00 by gitea-mirror · 9 comments
Owner

Originally created by @jose1711 on GitHub (Feb 12, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3221

openshot-qt gives errors and is unable to present file selection dialog on arch linux with the current 2.5.0 version.
stdout/stderr:

QMainWindow::addDockWidget: invalid 'area' argument
     ui_util:INFO Initializing UI for MainWindow
      logger:ERROR Exception in thread
     version:ERROR Failed to get version from: http://www.openshot.org/version/json/
      logger:ERROR Thread-5
      logger:ERROR :
      logger:ERROR Traceback (most recent call last):
      logger:ERROR   File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
      logger:ERROR self.run()
      logger:ERROR   File "/usr/lib/python3.8/site-packages/openshot_qt/classes/thumbnail.py", line 98, in run
files_listview:INFO currentChanged
      logger:ERROR self.server_address = ('127.0.0.1', self.find_free_port())
files_listview:INFO updateSelection
      logger:ERROR   File "/usr/lib/python3.8/site-packages/openshot_qt/classes/thumbnail.py", line 83, in find_free_port
 files_model:INFO updating files model.
      logger:ERROR s = socket.socket()
      logger:ERROR   File "/usr/lib/python3.8/socket.py", line 231, in __init__
      logger:ERROR _socket.socket.__init__(self, family, type, proto, fileno)
      logger:ERROR OSError
      logger:ERROR :
      logger:ERROR [Errno 95] Operation not supported

timeline_webview:INFO No HTTP thumbnail server found yet... keep waiting...
timeline_webview:INFO No HTTP thumbnail server found yet... keep waiting...
timeline_webview:INFO No HTTP thumbnail server found yet... keep waiting...
timeline_webview:INFO No HTTP thumbnail server found yet... keep waiting...
timeline_webview:INFO No HTTP thumbnail server found yet... keep waiting...
..continues
Originally created by @jose1711 on GitHub (Feb 12, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3221 `openshot-qt` gives errors and is unable to present file selection dialog on arch linux with the current 2.5.0 version. stdout/stderr: ``` QMainWindow::addDockWidget: invalid 'area' argument ui_util:INFO Initializing UI for MainWindow logger:ERROR Exception in thread version:ERROR Failed to get version from: http://www.openshot.org/version/json/ logger:ERROR Thread-5 logger:ERROR : logger:ERROR Traceback (most recent call last): logger:ERROR File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner logger:ERROR self.run() logger:ERROR File "/usr/lib/python3.8/site-packages/openshot_qt/classes/thumbnail.py", line 98, in run files_listview:INFO currentChanged logger:ERROR self.server_address = ('127.0.0.1', self.find_free_port()) files_listview:INFO updateSelection logger:ERROR File "/usr/lib/python3.8/site-packages/openshot_qt/classes/thumbnail.py", line 83, in find_free_port files_model:INFO updating files model. logger:ERROR s = socket.socket() logger:ERROR File "/usr/lib/python3.8/socket.py", line 231, in __init__ logger:ERROR _socket.socket.__init__(self, family, type, proto, fileno) logger:ERROR OSError logger:ERROR : logger:ERROR [Errno 95] Operation not supported timeline_webview:INFO No HTTP thumbnail server found yet... keep waiting... timeline_webview:INFO No HTTP thumbnail server found yet... keep waiting... timeline_webview:INFO No HTTP thumbnail server found yet... keep waiting... timeline_webview:INFO No HTTP thumbnail server found yet... keep waiting... timeline_webview:INFO No HTTP thumbnail server found yet... keep waiting... ..continues ```
Author
Owner

@ghost commented on GitHub (Feb 12, 2020):

...
version:ERROR Failed to get version from: http://www.openshot.org/version/json/
...
logger:ERROR self.server_address = ('127.0.0.1', self.find_free_port())

The default openshot profile currently disables network access. Can you try with --ignore net none --netfilter --protocol unix,inet,inet6,netlink and report back if that changes anything?

<!-- gh-comment-id:585452111 --> @ghost commented on GitHub (Feb 12, 2020): > ... > version:ERROR Failed to get version from: http://www.openshot.org/version/json/ > ... > logger:ERROR self.server_address = ('127.0.0.1', self.find_free_port()) > The default openshot profile currently disables network access. Can you try with `--ignore net none --netfilter --protocol unix,inet,inet6,netlink` and report back if that changes anything?
Author
Owner

@jose1711 commented on GitHub (Feb 13, 2020):

@glitsj16 yes, this workaround works. thank you

<!-- gh-comment-id:585649317 --> @jose1711 commented on GitHub (Feb 13, 2020): @glitsj16 yes, this workaround works. thank you
Author
Owner

@ghost commented on GitHub (Feb 13, 2020):

@jose1711 I'll add those needed changes for openshot 2.5.0 in a minute. Thanks for reporting this here, much appreciated! If you install firejail using your OS' package manager, just remember to remove these options after a future update so your openshot.local file stays in-sync.

<!-- gh-comment-id:585665686 --> @ghost commented on GitHub (Feb 13, 2020): @jose1711 I'll add those needed changes for openshot 2.5.0 in a minute. Thanks for reporting this here, much appreciated! If you install firejail using your OS' package manager, just remember to remove these options after a future update so your openshot.local file stays in-sync.
Author
Owner

@rusty-snake commented on GitHub (Feb 13, 2020):

Just one question works it with net none + protocol unix,inet,inet6,netlink?

<!-- gh-comment-id:585745410 --> @rusty-snake commented on GitHub (Feb 13, 2020): Just one question works it with `net none` + `protocol unix,inet,inet6,netlink`?
Author
Owner

@rusty-snake commented on GitHub (Feb 23, 2020):

@jose1711 @glitsj16 the thumbnail-server is started by openshot on 127.0.0.1:high-random-port. Openshot need inet to create this socket for lo but it does not need internet access. Can you confirm this?
firejail --net=none --protocol=unix,inet openshot-qt

<!-- gh-comment-id:590052733 --> @rusty-snake commented on GitHub (Feb 23, 2020): @jose1711 @glitsj16 the thumbnail-server is started by openshot on `127.0.0.1:high-random-port`. Openshot need `inet` to create this socket for `lo` but it does not need internet access. Can you confirm this? `firejail --net=none --protocol=unix,inet openshot-qt`
Author
Owner

@ghost commented on GitHub (Feb 23, 2020):

version:ERROR Failed to get version from: http://www.openshot.org/version/json/

The above was why I assumed openshot needed full internet access. I can't test right now, as I'm on a friend's machine during the weekend.

<!-- gh-comment-id:590069115 --> @ghost commented on GitHub (Feb 23, 2020): > version:ERROR Failed to get version from: http://www.openshot.org/version/json/ The above was why I assumed openshot needed full internet access. I can't test right now, as I'm on a friend's machine during the weekend.
Author
Owner

@rusty-snake commented on GitHub (Feb 23, 2020):

@glitsj16 I know that openshot has some telemetry stuff. I looked into the code of openshot (https://github.com/OpenShot/openshot-qt/blob/develop/src/classes/version.py and https://github.com/OpenShot/openshot-qt/blob/develop/src/windows/main_window.py#L2317). Openshot displays an "update available" message. IMHO it is ok to drop this support in the profile, since update are installed with your packet-manager. Maybe we can add a note like "Uncomment (or at to openshot.local) if you want telemetry and update notifications.".

<!-- gh-comment-id:590070413 --> @rusty-snake commented on GitHub (Feb 23, 2020): @glitsj16 I know that openshot has some telemetry stuff. I looked into the code of openshot (https://github.com/OpenShot/openshot-qt/blob/develop/src/classes/version.py and https://github.com/OpenShot/openshot-qt/blob/develop/src/windows/main_window.py#L2317). Openshot displays an "update available" message. IMHO it is ok to drop this support in the profile, since update are installed with your packet-manager. Maybe we can add a note like "Uncomment (or at to openshot.local) if you want telemetry and update notifications.".
Author
Owner

@jose1711 commented on GitHub (Feb 27, 2020):

Running openshot like this

firejail --net=none --protocol=unix,inet openshot-qt

seems to work fine.

<!-- gh-comment-id:591901247 --> @jose1711 commented on GitHub (Feb 27, 2020): Running `openshot` like this ``` firejail --net=none --protocol=unix,inet openshot-qt ``` seems to work fine.
Author
Owner

@ghost commented on GitHub (Feb 27, 2020):

@jose1711 Thanks for confirming!

<!-- gh-comment-id:591913107 --> @ghost commented on GitHub (Feb 27, 2020): @jose1711 Thanks for confirming!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2018
No description provided.