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
fd09b024
Commit
fd09b024
authored
Oct 30, 2016
by
Jean-Baptiste Mardelle
Browse files
Allow setting custom config file with --config option
parent
8996c30e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
fd09b024
...
...
@@ -54,7 +54,7 @@ int main(int argc, char *argv[])
app
.
setApplicationName
(
QStringLiteral
(
"kdenlive"
));
app
.
setWindowIcon
(
QIcon
(
":/pics/kdenlive.png"
));
KLocalizedString
::
setApplicationDomain
(
"kdenlive"
);
KSharedConfigPtr
config
=
KSharedConfig
::
openConfig
(
QStringLiteral
(
"kdenliverc"
)
);
KSharedConfigPtr
config
=
KSharedConfig
::
openConfig
();
KConfigGroup
grp
(
config
,
"unmanaged"
);
KConfigGroup
initialGroup
(
config
,
"version"
);
if
(
!
initialGroup
.
exists
())
{
...
...
@@ -118,6 +118,7 @@ int main(int argc, char *argv[])
parser
.
addVersionOption
();
parser
.
addHelpOption
();
parser
.
addOption
(
QCommandLineOption
(
QStringList
()
<<
QStringLiteral
(
"config"
),
i18n
(
"Set a custom config file name"
),
QStringLiteral
(
"config"
)));
parser
.
addOption
(
QCommandLineOption
(
QStringList
()
<<
QStringLiteral
(
"mlt-path"
),
i18n
(
"Set the path for MLT environment"
),
QStringLiteral
(
"mlt-path"
)));
parser
.
addOption
(
QCommandLineOption
(
QStringList
()
<<
QStringLiteral
(
"i"
),
i18n
(
"Comma separated list of clips to add"
),
QStringLiteral
(
"clips"
)));
parser
.
addPositionalArgument
(
QStringLiteral
(
"file"
),
i18n
(
"Document to open"
));
...
...
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