scratch removes "execute" permission upon saving
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Scratch |
Fix Released
|
Medium
|
Mario Guerriero |
Bug Description
Steps to reproduce
20:07:58 ~ $ echo "echo \"working\"" > test.sh
20:08:22 ~ $ ll test.sh
-rw-r--r-- 1 tester users 15 Jan 29 20:08 test.sh\
20:08:25 ~ $ chmod +x test.sh
20:08:36 ~ $ ll test.sh
-rwxr-xr-x 1 tester users 15 Jan 29 20:08 test.sh*
# open scratch and then close it
20:08:39 ~ $ scratch test.sh
[INFO 20:08:45.136709] [Application:83] Scratch version: 1.0
[INFO 20:08:45.136789] [Application:86] Kernel version:
[DEBUG 20:08:45.137845] [Settings:155] Loading settings from schema 'org.elementary
[DEBUG 20:08:45.138470] [Settings:155] Loading settings from schema 'org.elementary
[DEBUG 20:08:45.139042] [Settings:242] Unsupported settings type 'GStrv' for key 'plugins-enabled' in schema 'org.elementary
[DEBUG 20:08:45.139144] [Settings:242] Unsupported settings type 'GStrv' for key 'opened-files' in schema 'org.elementary
[DEBUG 20:08:45.140187] [Settings:155] Loading settings from schema 'org.elementary
[FATAL 20:08:45.145573] [Gtk] gtk_menu_
[FATAL 20:08:45.145655] Scratch will not function properly.
[FATAL 20:08:45.145733] [Gtk] gtk_widget_
[FATAL 20:08:45.145794] Scratch will not function properly.
[INFO 20:08:45.500888] [Tab:103] Saving: /home/tester/
20:08:46 ~ $ ll test.sh
-rw-r--r-- 1 tester users 15 Jan 29 20:08 test.sh
20:08:51 ~ $ ./test.sh
bash: ./test.sh: Permission denied
I'm using version at commit 536
Related branches
- Mario Guerriero (community): Disapprove
-
Diff: 93 lines (+45/-6)1 file modifiedsrc/Services/Document.vala (+45/-6)
description: | updated |
Changed in scratch: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in scratch: | |
assignee: | nobody → Seth Woods (alekasethm) |
status: | Confirmed → In Progress |
Changed in scratch: | |
assignee: | Paulo Galardi (alekasethm) → Mario Guerriero (mefrio-g) |
status: | In Progress → Fix Committed |
Changed in scratch: | |
status: | Fix Committed → Fix Released |
milestone: | none → 1.1 |