Bug 398779 - Kate removes execute permission on save
Summary: Kate removes execute permission on save
Status: RESOLVED FIXED
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.49.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-18 04:20 UTC by Jonas Lippuner
Modified: 2018-09-19 05:42 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.