scratch removes "execute" permission upon saving

Bug #923434 reported by 3demax@ukr.net
10
This bug affects 2 people
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.Scratch.SavedState'
[DEBUG 20:08:45.138470] [Settings:155] Loading settings from schema 'org.elementary.Scratch.Settings'
[DEBUG 20:08:45.139042] [Settings:242] Unsupported settings type 'GStrv' for key 'plugins-enabled' in schema 'org.elementary.Scratch.Settings'
[DEBUG 20:08:45.139144] [Settings:242] Unsupported settings type 'GStrv' for key 'opened-files' in schema 'org.elementary.Scratch.Settings'
[DEBUG 20:08:45.140187] [Settings:155] Loading settings from schema 'org.elementary.Scratch.Services'
[FATAL 20:08:45.145573] [Gtk] gtk_menu_shell_insert: assertion `GTK_IS_MENU_SHELL (menu_shell)' failed
[FATAL 20:08:45.145655] Scratch will not function properly.
[FATAL 20:08:45.145733] [Gtk] gtk_widget_show_all: assertion `GTK_IS_WIDGET (widget)' failed
[FATAL 20:08:45.145794] Scratch will not function properly.
[INFO 20:08:45.500888] [Tab:103] Saving: /home/tester/test.sh

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

3demax@ukr.net (3demax)
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
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.