<div dir="ltr"><div>I made a change locally to the updateWindowCaption() function in MainWindow.cpp:</div><div><br></div><div>void MainWindow::updateWindowCaption()<br>{<br>    if (_pluggedController.isNull()) {<br>        return;<br>    }<br><br>    const QString &title = _pluggedController->title();<br>    const QString &userTitle = _pluggedController->userTitle();<br><br>    // use tab title as caption by default<br>    QString caption = title;<br><br>    // use window title as caption when this setting is enabled<br>    // if the userTitle is empty, use a blank space (using an empty string<br>    // removes the dash — before the application name; leaving the dash<br>    // looks better)<br>    if (KonsoleSettings::showWindowTitleOnTitleBar()) {<br>        !userTitle.isEmpty() ? caption = userTitle : caption = QStringLiteral(" ");<br>    }<br><br>    if (KonsoleSettings::showAppNameOnTitleBar()) {<br>        QApplication::setApplicationDisplayName("Konsole");<br>        setCaption(caption);<br>    } else {<br>        QApplication::setApplicationDisplayName("");<br>        setPlainCaption(caption);<br>    }<br>}<br></div><div><br></div><div>which
 seems to work for me.  I have to restart Konsole after changing the 
showWindowOnTitleBar setting but it does correctly hide/show the " - 
Konsole" string.</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, 25 Nov 2018 at 20:17, Andrew Smith <<a href="mailto:noreply@phabricator.kde.org">noreply@phabricator.kde.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><table><tr><td>EspadaV8 added a comment.
</td><td><a style="text-decoration:none;padding:4px 8px;margin:0 8px 8px;float:right;color:#464c5c;font-weight:bold;border-radius:3px;background-color:#f7f7f9;background-image:linear-gradient(to bottom,#fff,#f1f0f1);display:inline-block;border:1px solid rgba(71,87,120,.2)" href="https://phabricator.kde.org/D17049" target="_blank">View Revision</a></td></tr></table><br><div><div><p><a href="https://phabricator.kde.org/p/glenncoombs/" style="border-color:#f1f7ff;color:#19558d;background-color:#f1f7ff;border:1px solid transparent;border-radius:3px;font-weight:bold;padding:0 4px" target="_blank">@glenncoombs</a> I just had a look at doing that and it doesn't work out well. You can remove it but to do it I needed to remove the details from the <tt style="background:#ebebeb;font-size:13px">KAboutData</tt> section (first and second lines below). Replacing <tt style="background:#ebebeb;font-size:13px">konsole</tt> on the first line and <tt style="background:#ebebeb;font-size:13px">Konsole</tt> for the <tt style="background:#ebebeb;font-size:13px">@title</tt> does remove the suffix, but the about screen then loses the information. Calling <tt style="background:#ebebeb;font-size:13px">app->setApplicationDisplayName(QString(""));</tt> after that (or before) doesn't do anything.</p>

<p><tt style="background:#ebebeb;font-size:13px">main.cpp:113</tt></p>

<div class="m_-8882885063090660997remarkup-code-block" style="margin:12px 0"><pre class="m_-8882885063090660997remarkup-code" style="font:11px/15px "Menlo","Consolas","Monaco",monospace;padding:12px;margin:0;background:rgba(71,87,120,0.08)">KAboutData about(QStringLiteral("konsole"),
                 i18nc("@title", "Konsole"),
                 QStringLiteral(KONSOLE_VERSION),
                 i18nc("@title", "Terminal emulator"),
                 KAboutLicense::GPL_V2,
                 i18nc("@info:credit", "(c) 1997-2017, The Konsole Developers"),
                 QString(),
                 QStringLiteral("<a href="https://konsole.kde.org/" target="_blank">https://konsole.kde.org/</a>"));</pre></div></div></div><br><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17049" target="_blank">https://phabricator.kde.org/D17049</a></div></div><br><div><strong>To: </strong>EspadaV8, Konsole, konsole-devel, hindenburg<br><strong>Cc: </strong>glenncoombs, konsole-devel, ngraham, maximilianocuria, hindenburg<br></div></blockquote></div>