This forum has been archived. All content is frozen. Please use KDE Discuss instead.

konsole: rename tabs via dbus

Tags: konsole konsole konsole
(comma "," separated)
jesolokde
Registered Member
Posts
7
Karma
0
OS

konsole: rename tabs via dbus

Thu Oct 29, 2009 9:58 am
Hi,

in konsole, I have often lots of tabs logged in at one or more remote hosts. I would like to rename the current tab and login via script. The method to rename the tab succeeds, but temporarily only:
Code: Select all
qdbus org.kde.konsole $KONSOLE_DBUS_SESSION org.kde.konsole.Session.setTitle 1 'myhost:mymsg'

After a few seconds the title falls back to previous one. I tried several values for the tab title patterns, including empty, but the previous title returns in any case.

Is there a chance to inhibit restoration of the old title and to pin the new one?

I'm on openSuse 11.1 and updated KDE to 4.3.2

regards
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: konsole: rename tabs via dbus

Fri Oct 30, 2009 6:49 am
I can reproduce this issue on Trunk. It is likely to be a bug in Konsole, as I cannot find any method available through D-Bus to switch auto updating off.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jesolokde
Registered Member
Posts
7
Karma
0
OS

Re: konsole: rename tabs via dbus

Fri Oct 30, 2009 10:23 am
Thank you for your answer, but it is bad news, it is really a handicap for my daily work :(

Meanwhile I found it reported as bug/wish as comment at
Bug 189828: Tab title won't stay manually set
dah-veed
Registered Member
Posts
1
Karma
0
OS

Re: konsole: rename tabs via dbus

Fri Nov 20, 2009 1:34 pm
I have a temporary solution that might work for some people until this bug gets some attention

set the tab title to '%w', and replace the dbus call with
Code: Select all
echo -ne "\033]0;myhost:mymsg\007";

This one will maintain the change until the script that set it ends, but it can also be overridden by the server (usually by bashrc setting the 'PROMPT_COMMAND' variable)

again, not a perfect fix, but it does well enough in my case, so I thought I might share.
jesolokde
Registered Member
Posts
7
Karma
0
OS

Re: konsole: rename tabs via dbus

Mon Nov 23, 2009 9:07 am
dah-veed, thank you for the hint, but it does not work for me. I don't know the reason.

I found another work around, which works for me. With tab title to '%w':
Code: Select all
mkdir -p "$WorkAroundDir/$SessionName"
cd "$WorkAroundDir/$SessionName"

The new tab name persists until the script exits.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: konsole: rename tabs via dbus

Tue Nov 24, 2009 6:58 am
Can you please file a bug report at bugs.kde.org regarding this, as commands sent over D-Bus should work correctly.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell