In konsole version 16.08 in dbus you could refer to the current instance, for example: qdbus org.kde.konsole $KONSOLE_DBUS_SESSION setTitle 1 'Title' After upgrade konsole to version 16.12 this is not possible, you must specify the PID. qdbus org.kde.konsole-28263 $KONSOLE_DBUS_SESSION org.kde.konsole.Session.setTitle 1 "Title2" When there is more than one process konsole, you can not be determined automatically PID. This makes it impossible unambiguous reference to the current process of konsole. I know that it is possible to run multiple windows in a single process konsole, but it has two problems: - You have to remember to create a new window instead of the process, - In the case of crash you lose all the windows - because they were in a single process, If the PID option for some reason must stay, please add the reference to the current instance for example: qdbus org.kde.konsole-current $KONSOLE_DBUS_SESSION org.kde.konsole.Session.setTitle 1 "Title2" or system variable with current instance like KONSOLE_DBUS_SESSION, example: #echo $KONSOLE_DBUS_INSTANCE org.kde.konsole-28263 to make it possible: qdbus $KONSOLE_DBUS_INSTANCE $KONSOLE_DBUS_SESSION org.kde.konsole.Session.setTitle 1 "Title2"
use qdbus $KONSOLE_DBUS_SERVICE $KONSOLE_DBUS_SESSION setTitle 1 'Title' although I realize it is not obvious to use this
Thank you for the information. Please update the information on the page: https://docs.kde.org/stable5/en/applications/konsole/scripting.html
Git commit 792eda569a4af1bec35864604846445513527101 by Kurt Hindenburg. Committed on 28/01/2017 at 17:43. Pushed by hindenburg into branch 'master'. Update release/date, scripting and command line help Add more info about using dbus with Konsole's envirnomental variables and re-add --nofork help M +44 -11 doc/manual/index.docbook https://commits.kde.org/konsole/792eda569a4af1bec35864604846445513527101