Dave farrance 2012-02-26 09:22:05
I usually invoke kwrite for editing text files by double-clicking on
them in konqueror. I also edit a lot of bash scripts by selecting
kwrite from the right-click context menu. Frequently enough, I also
double-click the bash scripts by mistake when I want to edit them – and
the script runs invisibly which can have unfortunate consequences.
Nautilus has among its few preference settings: “view executable text
files when they are clicked”. This works fine and is exactly what I
want. I can’t think of any reason why I’d want to execute a script from
a GUI file manager.
In konqueror’s file associations, I’ve changed the embedding option of
“x-shellscript” to “show file in separate viewer”. That does not work,
although I might not be understanding the intent of that option
correctly. Anyway, if I double-click on scripts, they still execute.
Does anybody know if there *is* a way to stop konqueror from executing
bash scripts that have the execute flag set? I’m using konqueror 3.4.2.
Has an execution disabling feature appeared in konqueror 3.5 maybe?
Dave farrance 2012-02-26 09:22:32
Never mind. It works now. I think that KDE has to be restarted for this
to take effect.
Dave farrance 2012-02-26 09:22:39
And now it has stopped working. Konqueror is back to executing scripts
on double-clicks. This is getting to be a pain in the neck.
Mombu 2012-02-27 07:16:39
If it’s any consolation, Dave, KDE doesn’t appear to be keeping my setting
changes either. For example, I’ve set it up to start up with whatever
applications were running last time but it’s starting with a set from
whenever it decided to start playing silly beggars.
Using KDE 3.4 and Mandriva 2006