Geany removes executable bits when saving shell script

Bug #1572182 reported by zapyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
geany (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I created a new shell script in geany and saved it.
Then I set the executable bits for user, group, other (rwxr-xr-x) for the file.
After running it I changed some details in geany and tried again to run the script. Suddenly the execution rights were gone. I tried several times. Whenever I save the file from within geany, the executable bits are set to not executable.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: geany 1.25+dfsg-1
ProcVersionSignature: Ubuntu 4.2.0-35.40-lowlatency 4.2.8-ckt5
Uname: Linux 4.2.0-35-lowlatency x86_64
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue Apr 19 16:39:53 2016
InstallationDate: Installed on 2016-02-19 (59 days ago)
InstallationMedia: Xubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
SourcePackage: geany
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
zapyon (zapyon) wrote :
Revision history for this message
Colomban Wendling (banw) wrote :

This is likely not a bug but a configuration issue. Did you change the value of the "various" preference `use_atomic_file_saving`? It is off by default for this very reason: it doesn't maintain metadata and attributes.

See https://wiki.geany.org/config/all_you_never_wanted_to_know_about_file_saving and Edit→Preferences→Various→use_atomic_file_saving.

Revision history for this message
zapyon (zapyon) wrote :

Hi Colomban.

Sorry, it looks like you are right. "use_atomic_file_saving" was on, though I do not remember having changed anything in the "various prefernces" section. Thank you for your help.

Andreas

Revision history for this message
Paul White (paulw2u) wrote :

Marking "Invalid". Reporter confirms issue resolved by settings change.

Changed in geany (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.