-
Notifications
You must be signed in to change notification settings - Fork 37
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
Chore: Parenthesis in shell #857
Chore: Parenthesis in shell #857
Conversation
The real question here is maybe also, why are we running this using
And, shouldn't |
Many times asked and aswered question. Because we're receiving ffmpeg arguments from settings, and to be able to "safely" use them as list, we would have to force TDs to fill them correctly (single arg as single string value From our experience they test setup of the output using cli and then just paste to settings whatever they come to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't test it - but I can imagine this may fix the issue at hand. So fine with me.
I do think bash
can be the shell even from another path then /bin/bash
which may not be 'the usual standard' but as far as I know still reasonable usage on Linux. @martastain may potentially bash me though when saying that.
However, I personally dislike the code duplication for this. It's not crazy, yet at the same time still annoying.
And I still think it's likely worth looking for a solution to that darned joined string. 🗡️ But maybe not now as hotfix - but tracked as separate issue.
Well, it probably can be moved to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me. Didn't test it though (no linux)
…issue-for-ftrack-previews
…issue-for-ftrack-previews
Changelog Description
Escape parenthesis for shell subprocess when
bash
orsh
are set as shell applications.Additional info
Content of parenthesis is "executed" in bash so it is necessary to escape them. This was discovered when thumbnail extraction should change resolution and command contained something like
(1920-iw)
.Testing notes:
I don't know. It requires linux machine and specific settings and case of input image.