Version: 2.1 (using 4.1.3 (KDE 4.1.3) "release 63.3", KDE:KDE4:Factory:Desktop / openSUSE_11.0) Compiler: gcc OS: Linux (i686) release 2.6.25.18-0.2-default In KDE 3 I've used dcop to change the tab title. This way I would easily show the file I had opened in vim, etc.. When I'm browsing the dbus interface with: qdbus $KONSOLE_DBUS_SERVICE $KONSOLE_DBUS_SESSION These options don't seam to exist anymore. Could you please make these features available again over dbus? Thank you for your time!
FYI, this was the code I used in KDE 3: if [ -n "$KONSOLE_DCOP_SESSION" ] && dcop >/dev/null 2>&1; then function dcop_title { dcop $KONSOLE_DCOP_SESSION renameSession "$1"; } function rename_konsole_tab { dcop_title "$(pwd | sed -re 's/.*(.{30})$/\1/' )/"; } function vim { dcop_title "vim $1" && `type -P vim` "$@"; } function man { dcop_title "man $1" && `type -P man` "$@"; } function ssh { dcop_title "ssh $1" && `type -P ssh` "$@"; } function su { dcop_title "su $1 $2" && `type -P su` "$@"; } function sudo { dcop_title "sudo $1" && `type -P sudo` "$@"; } PROMPT_COMMAND=rename_konsole_tab fi
Change this to a wish. The dbus structure is not in Konsole yet.
(In reply to comment #2) > Change this to a wish. The dbus structure is not in Konsole yet. please, is there any ETA for this?
I think this could be closed as actual stable konsole already contains DBUS interface.
Confirmed! qdbus org.kde.konsole $KONSOLE_DBUS_SESSION setTitle 1 "lala" guess I'll set my own bug report as fixed then.. ;-)
Well, probably not so quickly :-( I found that it is replaced back after while and I did not find a way how to prevent it.
Created attachment 38058 [details] Add method void org.kde.konsole.Session.renameTab(QString tabName)
I have only one issue. It took several seconds to change the title. It is not immediately changed.
Created attachment 38059 [details] Improved version Immediately change title. Maybe should be renamed to "renameSession".