[Konsole-devel] [Bug 287922] New: Tab Title for remote sessions fails when using wrapper around ssh

JT Moree jtmoree at kahalamgmt.com
Wed Nov 30 16:39:20 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=287922

           Summary: Tab Title for remote sessions fails when using wrapper
                    around ssh
           Product: konsole
           Version: 2.6.4
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: konsole-devel at kde.org
        ReportedBy: jtmoree at kahalamgmt.com


Version:           2.6.4 (using KDE 4.6.5) 
OS:                Linux

Konsole does not realize I am in remote shells when using wrapper scripts
around ssh.  Due to this it sets the title tab to the local settings instead of
remote.  The title is correct by using the ssh command directly.

I have a script called sshr (autossh is rumored to have this problem also). 
The only thing sshr does is append 'ssh root@' in front of the arg i send it
and execute it.
    sshr server => ssh root at server

Is there any way that Konsole can be made smarter.  It needs to look for ssh
running within the tab instead of just looking for the top level launching
command to be 'ssh'.



Reproducible: Always

Steps to Reproduce:
* Change format for local and remote tab titles to be different (normally the
default?)

jtmoree at jt-ubuntu:~$ printf '#!/bin/bash\nssh root@$1\n' > testremote
jtmoree at jt-ubuntu:~$ chmod a+x testremote 
jtmoree at jt-ubuntu:~$ ssh user at host

* Watch Tab Title Change
[user at host ~]$ exit

jtmoree at jt-ubuntu:~$ ./testremote host
* Watch Tab Title Change to Local Title 


Actual Results:  
Tab title is local format instead of remote

Expected Results:  
Want the tab title to be remote format when using ssh in wrapper script

BTW, there is a delay on changing the title so I can login with ssh and see the
title change.  Then exit and log in with my wrapper and watch the title change
to the local title format.

It's trivial to see but may not be trivial to fix so I'm leaving it as Normal
Severity.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list