Bug 326378

Summary: scripts with execute permissions get executed instead of opening in default text editor
Product: [Applications] dolphin Reporter: Branko Grubic <bitlord0xff>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 4.11.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Branko Grubic 2013-10-21 12:07:54 UTC
In dolphin file manager when you have scripts (tested with python scripts (foo.py)), and it has execute permission, __default action is execute__ (left click), so script gets executed. I think this is wrong (I know this can be useful too). In file properties (right click > Properties) there is a 'type' and 'File type options' >> in 'General' everything looks ok, also in 'Embedding', but script gets executed, and for example scripts which expect some user input are "stuck". Probably most scripts downloaded from the internet are saved by default without execute permissions, but still this is somehow a "security problem" too.

For example default options are "respected" in konqueror if used as file manager, they don't get executed.

Reproducible: Always

Steps to Reproduce:
1. create some basic script (python for example)
2. test default action (left click?) on it with and without +x 
3.
Actual Results:  
scripts with execute permission get executed

Expected Results:  
scripts are opened in default text editor (or whatever is set as default action for that file type)
Comment 1 Frank Reininghaus 2013-10-21 14:26:39 UTC
Thanks for the report. This issue has been reported already.

*** This bug has been marked as a duplicate of bug 172038 ***