Bug 167015 - Scripts are opened in text editor instead of being executed.
Summary: Scripts are opened in text editor instead of being executed.
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-19 19:52 UTC by Benno Dielmann
Modified: 2022-09-25 13:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benno Dielmann 2008-07-19 19:52:26 UTC
Version:            (using KDE 4.0.98)
Installed from:    Ubuntu Packages

Dolphin doesn't execute scripts (e.g. python scripts) which are set executable when they are clicked with the left mouse button. Instead they are opened in an editor (or whatever is configured for the respective file type). 

IMHO, executing executable script files should be the default left click action, since one can still open it in an editor via the right mouse button menu. The other way round isn't possible.
Comment 1 Christophe Marin 2008-07-20 14:39:17 UTC
Changing title and severity.

IMHO, this should never happen for obvious security reasons :)
Comment 2 David Faure 2008-07-23 13:52:27 UTC
Well it did happen in KDE3, and it makes perfect sense to have that feature. For instance I set up some scripts for my wife (like a "svn update and compile" script, and she would just click on the script in konqueror to run it).

I guess if we disable this explicitely [I don't know why it wouldn't work right now, I guess it's specific to python but shell works, so it's just a mimetype check issue in KRun?], then we'd all have to create desktop files with Exec lines for this purpose, but then nothing is gained from a security point of view, just more cumbersome to set up...
Comment 3 Kishore Gopalakrishnan 2022-09-25 13:07:14 UTC
This can now be configured in Settings > configure Dolphin > General > confirmation> when opening executable files.