Geany removes executable bits when saving shell script
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
ProcVersionSign
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)
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→Preference s→Various→ use_atomic_ file_saving.