I am trying to add an entry in KDE Menu Editor, that executes a command in terminal, and return to prompt in the opened terminal.

The result: new terminal is opened, the command is executed but no return to prompt, and no response but just closing the terminal (even Ctrl+D or Ctrl+C cause no action). enter image description here

The command I tried is: konsole --hold -e "hping --help" Adding & at the end didn't help.

How to add a "command to run in terminal and return to prompt" as an entry in the KDE application menu?

  • Avoid attaching picture, whenever possible .... use copy-paste instead – TPS Oct 12 '18 at 14:41
  • So that deserves a down vote!! – Ahmad Abdelghany Oct 12 '18 at 14:45
  • No, I have not down-voted this. I am a reviewer. Here is How do I ask a good question?. – TPS Oct 12 '18 at 14:50

I found the Answer:

  1. Uncheck the option 'Run in terminal' in KDE Menu Editor
  2. Call bash to execute command
  3. Append ;$SHELL to the end

    konsole -e "bash -c 'hping --help;$SHELL'"

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.