Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
892c88c5
Commit
892c88c5
authored
Nov 14, 2022
by
Jean-Baptiste Mardelle
Browse files
Fix MaxOS compilation
(cherry picked from commit
05189967
)
parent
2d659c95
Pipeline
#267341
passed with stage
in 6 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/core.cpp
View file @
892c88c5
...
...
@@ -261,11 +261,16 @@ void Core::buildLumaThumbs(const QStringList &values)
QString
Core
::
openExternalApp
(
const
QString
&
appPath
,
QStringList
args
)
{
QProcess
process
;
#if defined(Q_OS_MACOS)
args
.
prepend
({
QStringLiteral
(
"-a"
),
appPath
,
QStringLiteral
(
"--args"
)});
appPath
=
QStringLiteral
(
"open"
);
args
.
prepend
(
QStringLiteral
(
"--args"
));
args
.
prepend
(
appPath
);
args
.
prepend
(
QStringLiteral
(
"-a"
));
if
(
!
process
.
startDetached
(
QStringLiteral
(
"open"
),
args
))
{
return
process
.
errorString
();
}
return
QString
();
#endif
QProcess
process
;
qDebug
()
<<
"Starting external app"
<<
appPath
<<
"with arguments"
<<
args
;
if
(
!
process
.
startDetached
(
appPath
,
args
))
{
return
process
.
errorString
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment