I set my desktop to folder view and I have a few shell scripts there. After my upgrade from KDE 5.3.0 on Kubuntu 15.04 to KDE 5.3.1 using the Kubuntu Team Backport PPA, the shell scripts open now in kate instead of being run as script. Reproducible: Always
I'm seeing the same behaviour. Possibly related to https://bugs.kde.org/show_bug.cgi?id=348437 both could fundamentally be a problem with the desktop and not with Kate.
Same for me, after upgrading to the backports PPA with Plasma 5.3.1. It did not happen when the backports PPA had only 5.3.
Same here, though here it tries to open the script with Okular for some reason.
After some investigation, the issue comes from kio-extras with this commit : http://quickgit.kde.org/?p=kio-extras.git&a=commit&h=fe1f50caaf24c47000938c9ac36a7f9a304f3c96 (Tested on Arch)
(In reply to Yoann Laissus from comment #4) > After some investigation, the issue comes from kio-extras with this commit : > http://quickgit.kde.org/?p=kio-extras. > git&a=commit&h=fe1f50caaf24c47000938c9ac36a7f9a304f3c96 > > (Tested on Arch) Does that mean the product or component needs to change?
I can't reproduce this with current git for KF 5 and plasma-desktop. Double-clicking a "blubb" that's marked executable and starts with a shebang runs it fine here.
I think this is because of the kio settings for executable scripts. Check if $XDG_CONFIG_HOME/kiorc has "[Executable scripts] behaviourOnLaunch=open". Change 'open' to 'execute' for always executing scripts on clicking. Alternatively, remove the whole [Executable scripts] section, so that you get a prompt each time whether to execute or open the script.
*** Bug 348551 has been marked as a duplicate of this bug. ***
(In reply to Eike Hein from comment #6) > I can't reproduce this with current git for KF 5 and plasma-desktop. > Double-clicking a "blubb" that's marked executable and starts with a shebang > runs it fine here. Indeed, it seems to be fixed with the latest git.