I have a bash script that I call (via the "Run" function in Notepadqq) with konsole --noclose -e ~/.config/Notepadqq/run.sh %path% that looks like this:
konsole --noclose -e ~/.config/Notepadqq/run.sh %path%