How to launch a KDE konsole with multiple tabs running various progs?

后端 未结 4 1640
别那么骄傲
别那么骄傲 2021-02-13 05:24

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 s

4条回答
  •  伪装坚强ぢ
    2021-02-13 06:17

    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:

    1. 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)

    1. 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.

提交回复
热议问题