Bug 461084

Summary: When the command executed at konsole startup is SSH, the "Clone Tab" action does not work
Product: [Applications] konsole Reporter: Markus Wernig <public>
Component: sshmanagerAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal CC: public
Priority: NOR    
Version: 22.04.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Markus Wernig 2022-10-27 19:31:35 UTC
SUMMARY
***
When konsole is given a command to execute at startup, and that command is ssh, the "Clone Tab" action just opens a new tab and executes bash instead of the ssh command. Funnily enough, if a profile was also given at startup, that profile is maintained in the new tab.
***

STEPS TO REPRODUCE
1. konsole --profile someprofile -e "ssh somehost"
2. Choose File->Clone Tab or enter Ctrl-shift-Z


OBSERVED RESULT
In the first tab, the command "ssh somehost" is executed, and the tab uses the given profile.
The second tab also uses the given profile, but does not execute "ssh somehost", but /bin/bash.

EXPECTED RESULT
The new ("cloned") tab should also execute "ssh somehost".
This has been the behaviour for many years before the SSH manager plugin was introduced.
When disabling the SSH manager plugin (eg. via "sudo chmod 700 /usr/lib64/qt5/plugins/konsoleplugins/konsole_sshmanagerplugin.so"), the ssh command is executed in the new tab.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo Linux amd64
(available in About System)
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 6.96.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
Graphics platform: X11