When opening a shell script file that has no .sh at the end of its name, file associations break a bit, It won’t open by left click, but instead with middle-click that should be reserved for secondary action. Even though when right clicking, it shows that file associations are set up like I want and when checking properties of the file, dolphin can determine that it is a shel script file.
files affected for me include: /etc/grub.d/
curiously actions work just fine in /etc/grub.d/backup/etc_grub_d/
Is this a known bug, or is this something with my setup?
Maybe to recognize script you have to add first line like: #!/bin/bash
In my system this helps. File has extension .bsh or .sh is not starting but line from above making it start.
all the shell files in that folder have this problem for me, all of them have #!/bin/sh, changing it to #!/bin/bash did not resolve it for me
here are its contents of 06_grub-customizer:
#!/bin/sh
if [ "x${GRUB_BACKGROUND}" != "x" ] ; then
if [ "x${GRUB_COLOR_NORMAL}" != "x" ] ; then
echo "set color_normal=${GRUB_COLOR_NORMAL}"
fi
if [ "x${GRUB_COLOR_HIGHLIGHT}" != "x" ] ; then
echo "set color_highlight=${GRUB_COLOR_HIGHLIGHT}"
fi
fi
Something to note by default left click on a executable scripts will launch it.
It should prompt for confirmation but that confirmation can be disabled.
I think that’s your case.
Since those scripts won’t do anything outside of the their case they fail silently.
We’d want to have some message if the scripts does not succeed.
But here their execution might work fine.