summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <jb@kdenlive.org>2016-10-30 17:13:08 (GMT)
committerJean-Baptiste Mardelle <jb@kdenlive.org>2016-10-30 17:13:08 (GMT)
commitfd09b024794d5670befb63c9a8723b19edb5ebc2 (patch)
treebee6bdf6434dad16c05041d00d6ef0d7869dfb18
parent8996c30e56b5ff6126adf828fdd7681320a5f7af (diff)
Allow setting custom config file with --config option
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d89716b..fe6b570 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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"));