KDE login scripts must have a shebang - fun with KDE 6 and wireplumber
Subject tells the short story. Longer story, I wanted to start pipewire, pipewire-pulse, and wireplumber at KDE login. In troubleshooting I found that KDE is overwrought here. Instead of just starting the scripts named here with run-parts or similar, it creates .desktop files for them in .config/autostart. I didn't put a shebang (e.g. #!/bin/bash) at the top of the script. As it turns out, this breaks this whole facility because the .desktop files will just try to run the script as an executable and fail with an execve format error.