Bug 398779

Summary: Kate removes execute permission on save
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Jonas Lippuner <jonas>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph, nate
Priority: NOR    
Version First Reported In: 5.49.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.50.0
Sentry Crash Report:

Description Jonas Lippuner 2018-09-18 04:20:56 UTC
Since a few days ago (when I upgraded all my packages), Kate started to remove the execute permission of Python scripts that I'm editing in Kate. It doesn't consistently happen (I haven't found a pattern yet), but very often (maybe about 50%) when I save a Python script that I'm editing and that had execute permission, Kate removes the execute permission (for all user, group, and other) upon saving and then I have to manually chmod the script again before I can execute it.
Comment 1 Christoph Cullmann 2018-09-18 12:16:36 UTC
Does this happen for files you have privileges to write or does this happen if the tool need to ask for a password to elevate its rights?
Comment 2 Christoph Cullmann 2018-09-18 12:37:57 UTC
An other important question: Which KDE Frameworks version is shown in the about dialog?
Comment 3 Jonas Lippuner 2018-09-18 15:45:05 UTC
(In reply to Christoph Cullmann from comment #1)
> Does this happen for files you have privileges to write or does this happen
> if the tool need to ask for a password to elevate its rights?

Yes, it happens for files that have normal permissions and I'm using the same user that owns the files to run kate. Nothing special. The file starts out with 755
Comment 4 Jonas Lippuner 2018-09-18 23:36:39 UTC
(In reply to Christoph Cullmann from comment #2)
> An other important question: Which KDE Frameworks version is shown in the
> about dialog?

Sorry this took a little longer. Had to get back home from work first.

Kate Version 18.08.0
KDE Frameworks 5.49.0
Qt 5.11.1 (built against 5.11.1)
The xcb windowing system
Comment 5 Christoph Cullmann 2018-09-19 05:42:46 UTC
No problem ;)

Ok, then this is fixed with 5.50.0

We changed the handling of file saving there.
Sorry for the issues.