Commit 3e296ce2 authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark Committed by Tomaz Canabrava
Browse files

add command line option to forcing reuse of existing process for debugging

parent 298a7734
......@@ -72,7 +72,10 @@ void Application::populateCommandLineParser(QCommandLineParser *parser)
{{QStringLiteral("p")}, i18nc("@info:shell", "Change the value of a profile property."), QStringLiteral("property=value")},
i18nc("@info:shell", "Command to execute. This option will catch all following arguments, so use it as the last option."),
{{QStringLiteral("force-reuse")}, i18nc("@info:shell", "Force re-using the existing instance even if it breaks functionality, e. g. --new-tab. Mostly for debugging.")},
for (const auto &option : options) {
......@@ -260,6 +260,10 @@ bool shouldUseNewProcess(int argc, char *argv[])
if (arguments.contains(QLatin1String("--force-reuse"))) {
return false;
// take Qt options into consideration
QStringList qtProblematicOptions;
qtProblematicOptions << QStringLiteral("--session") << QStringLiteral("--name") << QStringLiteral("--reverse") << QStringLiteral("--stylesheet")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment