I have a simple .sh script on my Desktop that fixes a minor annoyance with my second display. If I open Konsole, and type ./script.sh, it runs perfectly. But if I double click that .sh file – it fails to run, or runs only half of that script if I modify it. How do I make it run completely when double clicking it?
Here is the source:
#!/bin/bash
kscreen-doctor output.DP-3.position.0,0 output.DP-2.position.1920,-10
kscreen-doctor output.DP-3.disable
kquitapp5 plasmashell
kstart5 plasmashell