--version command line argument (without launching OpenShot)

Bug #956664 reported by Aditya V
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
Fix Released
Low
Aditya V

Bug Description

This is a general feature request, so it doesn't apply to any specific version of Ubuntu/Linux.

I wanted to find out the version on OpenShot through command line, so I punched in "openshot --version", but it looked like it was starting up instead of just giving a one-line output of its version. Though it does state its version during startup in its terminal output, but it would be nice if it would only show the version and not try to start up. Also, it seems that there's no "--help" either, so I guess that means there's no command line interface whatsoever.

Thanks in advance!

Revision history for this message
Andy Finch (fincha) wrote :

The only command line option is the following (from the manual):

openshot [filename]

The optional [filename] parameter can be either an audio or video file, or an OpenShot project file (*.osp). Multiple files can also be specified (with spaces between each filename), and all files will be imported into a single instance of OpenShot.

In general, we have not bothered too much with the command line as we have seen limited value, seeing as it's a video editor.

But if someone wants to submit a patch then we'd have a look at it.

Changed in openshot:
importance: Undecided → Wishlist
Aditya V (kroq-gar78)
Changed in openshot:
status: New → In Progress
assignee: nobody → kroq-gar78 (kroq-gar78)
Aditya V (kroq-gar78)
Changed in openshot:
status: In Progress → New
assignee: kroq-gar78 (kroq-gar78) → nobody
Aditya V (kroq-gar78)
Changed in openshot:
assignee: nobody → kroq-gar78 (kroq-gar78)
status: New → In Progress
Revision history for this message
Aditya V (kroq-gar78) wrote :

OK. I've finally got it to work. Here's the patch. I'll also set my branch to merge. Sorry for the ~7 commits! I kept ignoring the error message and trying "new" things... Also, I'll see if I can add that to the manpage also.

Revision history for this message
Aditya V (kroq-gar78) wrote :

I added changed the patch to add '--version' to the manpage, too.

Revision history for this message
Aditya V (kroq-gar78) wrote :

I added changed the patch to add '--version' to the manpage, too.

Revision history for this message
Andy Finch (fincha) wrote :

Thanks, we'll take a look at it soon!

Andy Finch (fincha)
Changed in openshot:
milestone: none → 1.4.3
Revision history for this message
Andy Finch (fincha) wrote :

Thanks, this has been committed to the trunk.

Changed in openshot:
status: In Progress → Fix Committed
Revision history for this message
Aditya V (kroq-gar78) wrote :

I'll cancel the merge request since you committed the patch instead.

Revision history for this message
Jonathan Thomas (jonoomph) wrote :

While testing this new feature, I found a big issue which was crashing OpenShot. If the 1st import statement did not find OpenShot, it would break importing classes.info, and thus not launch OpenShot. I moved the code around, and put it into a safer location. This also fixes another bug, when there are multiple instances of OpenShot launched the "--version" arg would crash it. So, all is good now, and checked in. Thanks!

summary: - [Feature Request] --version command line option
+ --version command line argument (without launching OpenShot)
Changed in openshot:
importance: Wishlist → Low
Changed in openshot:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.