-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🐛 Open from CLI does not open in background #1572
Comments
You expect the terminal to become interactive again and losslesscut to fork off into the background when you launch it from the command line?
|
Use case is that I'm using a terminal for moving/copying/downloading additional files and simply want to tell LosslessCut to open one (or more) of the files and carry on with what I'm doing in the terminal. While using mklaber in ~/Code/lossless-cut-fixtures on master [?]
$ /Applications/LosslessCut.app/Contents/MacOS/LosslessCut &
[2] 71816
mklaber in ~/Code/lossless-cut-fixtures on master [?]
$ ls [71816:0420/112757.880039:ERROR:trust_store_mac.cc(838)] Error parsing certificate:
ERROR: Failed parsing extensions
[71816:0420/112757.880124:ERROR:trust_store_mac.cc(838)] Error parsing certificate:
ERROR: Failed parsing extensions
dir1
sample_mpeg4-html5ified-dummy.mkv sample_mpeg4.mp4
mklaber in ~/Code/lossless-cut-fixtures on master [?]
$ I don't think people expecting a script to block is a real use case for a UI app as long as there's no commands that can be executed via the CLI. As currently implemented (or at least documented), the CLI only exists for opening file(s) in the UI. Having said that, if we did want that behavior, it'd probably best be handled by a flag like VS Code's Adding CLI commands to perform common actions as described in #980 would still be possible; if a command is provided as the first argument, perform it. If not, open the app (yes this gets a bit dicey with "is this a command or is this the name of a file"). |
not sure what you mean by this. how is it not working as expected if an existing instance is running? You can turn on "allow multiple instances" under settings, then it will open multiple instances (one for each command).
not sure which shell you're using but with bash this is usually solved by redirecting output, e.g. |
closing this because i think many people don't want this behaviour (and forking programs to the background is typically done by scripting) |
I have a lot of issues to go through, so in order to make it easier for me to help you, I ask that you please try these things first
Operating System
MacOS 10
Steps to reproduce
ERROR
s are superfluous for this particular issue but including nonetheless):Note that above is a simplified example. The same behavior occurs in a more typical case like providing a file to open as the first argument.
Expected behavior
I would expect step 3 to actually look like step 6 and return control to the command line. Step 6's observation would put the app in line with other Electron apps' behavior like VS Code.
Actual behavior
The Terminal is blocked.
Share log
No response
The text was updated successfully, but these errors were encountered: