Bug 326378 - scripts with execute permissions get executed instead of opening in default text editor
Summary: scripts with execute permissions get executed instead of opening in default t...
Status: RESOLVED DUPLICATE of bug 172038
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 4.11.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-21 12:07 UTC by Branko Grubic
Modified: 2013-10-21 14:26 UTC (History)
0 users

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 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 ***