Bug 439655

Summary: RMB -> Run in Konsole breaking some scripts
Product: [Applications] dolphin Reporter: keybreak <fear.filter>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: major CC: kfm-devel, sthenujan2002
Priority: NOR    
Version First Reported In: 21.04.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description keybreak 2021-07-08 19:24:56 UTC
SUMMARY
RMB -> Run in Konsole
Works really not as intended, it's very different in how scripts are executed (many of them turn out utterly broken, which boggled my mind for very long time).


STEPS TO REPRODUCE
1. Create small example script named `test.sh`, make it executable:

```
#!/bin/bash

killall plasmashell
kstart5 plasmashell > /dev/null 2>&1

```
2. RMB -> Run in Konsole


OBSERVED RESULT

Plasma shell will close, but won't start, because there's something wrong.

P.S. I know for that case i could do `setsid kstart5 plasmashell > /dev/null 2>&1` and it would work, but that's just an example and not the point ;)


EXPECTED RESULT

It should work EXACTLY the same as if you:
- RMB (on Dolphin's empty space in dir) -> Open Terminal -> `./test.sh`
- F4 -> `./test.sh`
- Just open Terminal cd to dir and `./test.sh`


SOFTWARE/OS VERSIONS

Linux/KDE Plasma:
(available in About System)
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Comment 1 thenujan 2023-08-05 12:42:27 UTC
Reproducible on 23.04.03