Bug 461084 - When the command executed at konsole startup is SSH, the "Clone Tab" action does not work
Summary: When the command executed at konsole startup is SSH, the "Clone Tab" action d...
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: sshmanager (show other bugs)
Version: 22.04.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-27 19:31 UTC by Markus Wernig
Modified: 2022-10-27 19:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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