konsole: switching profiles not working; profile manager errors

konsole version: 20.12.0

Open a terminal with the konsole command gives:


QObject::connect: signal not found in Konsole::ProfileManager 
QObject::connect: signal not found in Konsole::ProfileManager 
QObject::connect: signal not found in Konsole::ProfileManager 
QObject::connect: signal not found in Konsole::ProfileManager 
QObject::connect: signal not found in Konsole::ProfileList 
QObject::connect: signal not found in Konsole::ProfileManager 
QObject::connect: signal not found in Konsole::ProfileManager 
QObject::connect: signal not found in Konsole::ProfileManage

Switching profiles is no more working, even if, for instance, konsole --profile system opens correctly et new terminal with the “system” profile.

I found a solution.

To obtain the konsole window id:

qdbus-qt5 | grep konsole

(it gives konsole-2034, in my case). To obtain the konsole window configuration:

qdbus-qt5 org.kde.konsole-2034 $KONSOLE_DBUS_WINDOW

(it gives in particular, the sessions list: I have 5 sessions). Change session #n profile:


qdbus-qt5 org.kde.konsole-2034 /Sessions/2 org.kde.konsole.Session.setProfile sys
qdbus-qt5 org.kde.konsole-2034 /Sessions/3 org.kde.konsole.Session.setProfile sys
qdbus-qt5 org.kde.konsole-2034 /Sessions/5 org.kde.konsole.Session.setProfile sys

Here “sys” is the name of my profile.