Summary: | Be able to change the tab title from dbus | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Diederik van der Boor <vdboor> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | kavol, mads, mkyral |
Priority: | NOR | ||
Version: | 2.1 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
Add method void org.kde.konsole.Session.renameTab(QString tabName)
Improved version |
Description
Diederik van der Boor
2008-12-04 08:58:06 UTC
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".
|