Bug 307089 - Provide a dbus method for "Copy Input To All Tabs in Current Window"
Summary: Provide a dbus method for "Copy Input To All Tabs in Current Window"
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.9.1
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-20 08:12 UTC by Steffen Weber
Modified: 2023-12-27 21:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Weber 2012-09-20 08:12:24 UTC
I'm the administrator of a few Linux servers that are configured more or less identically. I log into them using SSH and issue more or less the same commands when installing updates. Konsole's feature "Copy Input To -> All Tabs in Current Window" has proven very useful for me.

I've written a bash script that automates the process of opening a suitable number of Konsole tabs and executing the correct "ssh [server-ip]" command in each tab. The bash script uses the utility "qdbus" for this task.

However, Konsole does not seem to provide a dbus method to enable the "Copy Input To All Tabs in Current Window" feature. Would it be possible to add such a method?

Reproducible: Always
Comment 1 Jekyll Wu 2012-10-20 22:12:02 UTC
Sounds like a valid need and doable to me.
Comment 2 Steffen Weber 2013-01-12 19:13:07 UTC
Hacky workaround: xdotool key "ctrl+shift+F10" "Right" "I" "A"
Comment 3 Bug Janitor Service 2023-12-26 05:55:44 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/939
Comment 4 Kurt Hindenburg 2023-12-27 21:47:43 UTC
Git commit cd2330c4fca46b8395eac0ad06f4ffce434ec156 by Kurt Hindenburg, on behalf of Theodore Wang.
Committed on 27/12/2023 at 21:27.
Pushed by hindenburg into branch 'master'.

Implemented DBus methods for copying input to other sessions

Implemented methods which allow input to be copied to no other
session and to all sessions. In addition, users can also select
exactly which sessions to copy input to by passing a list of
Session ids. Calling supporting method copyingSessions() on a
session lists other sessions which are copying input from it.
Calling supporting method feederSessions() on a session lists
other sessions it is copying input from.

M  +83   -0    src/session/Session.cpp
M  +31   -0    src/session/Session.h
M  +28   -14   src/session/SessionController.cpp
M  +13   -3    src/session/SessionController.h

https://invent.kde.org/utilities/konsole/-/commit/cd2330c4fca46b8395eac0ad06f4ffce434ec156