Score:0

Safely start a KDE program from Yakuake terminal

in flag
NdB

I'm using the latest Kubuntu version, 21.10. While running Yakuake (drop down terminal) I would like to safely start Kate and Konsole. Safely meaning without any console output in Yakuake.

First some bash code, included in my ~/.basrc as a function (shortcut):

konsole --profile profile-test \
    --layout /path/to/view.json \
    --tabs-from-file /path/to/tab.cfg \
    --workdir `pwd` &

kate $file-1 $file-2

The & detaches the new Konsole. However, still output to Yakuake.

So... 3 situations:

  1. Kate or Konsole not running yet.
  2. Already running; add files (Kate) or tab (Konsole) to instance
  3. Already running; start a new, fresh instance.

Any ideas pointing to a usable approach, also educational for others who might read this?

NdB avatar
in flag
NdB
One of the situations in which this is relevant is [this script](https://github.com/hfndb/tools/blob/master/bash-scripts/search-file.sh). If Kate is not running yet..
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.