Skip to content

"Allow Launching" does not set execute bit

If I copy a .desktop file with 0644 permissions to the ~/Desktop folder, right click, and select "Allow Launching", nothing visible happens. To make the icon 'launchable' I need to also change the file permissions explicitly somehow.

When looking at the onAllowDisallowLaunchingClicked() function in fileItem.js, the apparent intention is that selecting "Allow launching" should also make the file executable if needed.

Output when running ding.js from terminal and attempting "Allow Launching":

gunnar@gunnar-ubuntu-dev:/usr/share/gnome-shell/extensions/ding@rastersoft.com$ ./ding.js
Gjs-Message: 00:26:38.815: JS LOG: Error connecting to Nautilus
GNOME nautilus 41.1

(gjs:4203): Gjs-CRITICAL **: 00:26:59.754: JS ERROR: TypeError: this._file.set_attributes is not a function
onAllowDisallowLaunchingClicked@/usr/share/gnome-shell/extensions/ding@rastersoft.com/fileItem.js:495:24
showMenu/<@/usr/share/gnome-shell/extensions/ding@rastersoft.com/fileItemMenu.js:184:37
@./ding.js:176:9

"Allow Launching" in the original desktop icons project works as expected in this respect.