I know how to start a Konsole with one executable running in it, and leave the Konsole open after the program ends. I can do this using a .desktop
file and change some options in it.
But I would like one step further, to launch a KDE konsole with multiple tabs open, each running a particular program, and that when the program finishes it stays open and give you a prompt.
There's no man page for Konsole so I don't even know what options it can take. Or some d-bus calls? Thanks
Who ever sees beauty in the accepted solution is hopefully not in software development : ) This must be a one liner or a bug report must be submitted. Every other common terminal has this option. I did some research and the "almost one liner solution" is this:
Create a file configuring your tabulators like so and name it let's say "tabs":
title: %n;; command: /usr/bin/htop
title: %n;; command: /usr/bin/ncmpcpp
(Here's the full documentation: https://docs.kde.org/stable5/en/applications/konsole/command-line-options.html The called command binaries are examples. The "%n" will name the tab exactly like the command)
Execute it like so:
konsole --tabs-from-file path_to_tabs_file/tabs
Result: A new konsole window with 3 tabs, running defined binaries and one empty prompt. I couldn't get a bash script to run. But I did just a few minutes of testing.