[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#848180: konsole: Includes application name in window title when configured not to do so



Control: tag -1 + confirmed
Control: reassign -1 src:kxmlgui 5.8.0-1
Control: affects -1 konsole
Control: severity -1 normal

¡Hola Aaron!

El 2016-12-13 a las 19:49 -0500, Aaron Schrab escribió:
Package: konsole Version: 4:16.08.3-1 Severity: minor

After unchecking the "Show application name on the titlebar" option in the Configure Konsole dialog it still inludes " - Konsole" at the end of window titles. This occurs even after closing all Konsole windows and restarting the application.

I first observed this with version 4:16.08.2-2 of both the konsole and konsole-kpart packages. I upgraded both of those to 4:16.08.3-1 from unstable to check if the issue was still present (and I again made sure to close all windows after the upgrade). Before I installed the version from testing yesterday I hadn't used this package in long time, so I can't say how long this bug has existed.

I can reproduce the issue, this seems to be a issue in kxmlgui rather than konsole. konsole calls setCaption or setPlainCaption depending on the value of the user setting, the first on documents that it would add the application name, and the second one that it wouldn't, but sadly this is no longer true ( since this was ported to qt5), as setCaption is implemented as a single call to setPlainCaption (and the responsible for adding the application name in the title is the qt qpa plugin).

The setCaption and setPlainCaption documentation can be seen here:
https://cgit.kde.org/kxmlgui.git/tree/src/kmainwindow.h

While the implementation can be seen here:
https://api.kde.org/frameworks/kxmlgui/html/kmainwindow_8cpp_source.html

The qt documentation for setWindowTitle can be found here:
http://doc.qt.io/qt-5/qwidget.html#windowTitle-prop

kxmlgui is missing a way to workaround the setWindowTitle use of the qpa plugin, this may need to be scale to qtbase.

Happy hacking,
--
"The sooner you start to code, the longer the program will take."
-- Roy Carlson
Saludos /\/\ /\ >< `/

Attachment: signature.asc
Description: PGP signature


Reply to: