Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-11-06 18:24:07

Friedrich
Member
Registered: 2016-09-18
Posts: 140

How to mark all Desktop icons as executable

After an update in the last few weeks i have to mark desktop icon again as executable when i start them for the first time (first time after the update). That's annoying. Is there a way to mark all of them as executable? I don't think thats the same as making a normal script executable with 'chmod +x'. When i ru 'ls ~/Desktop' all *.desktop are executable.

Offline

#2 2021-11-06 20:20:06

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: How to mark all Desktop icons as executable

When thunar "Allow this file to run as a program", it sets the files "access::can-execute" attribute. You can see all these attributes with:

gio info DESKTOP_FILE

...where DESKTOP_FILE is the name of a desktop file.

Unfortunately, the gio command line utility is only able to set some of these settings but not all of them:

$ gio set file:///home/toz/Desktop/myapp.desktop  "access::can-execute" true
gio: Setting attribute access::can-execute not supported

It looks like manually changing every file is the only way to fix this.

Out of curiosity, what kind of update was this? Just a regular update or did you upgrade to a newer version of a distro? An update really shouldn't affect these settings.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2021-11-07 08:19:01

Friedrich
Member
Registered: 2016-09-18
Posts: 140

Re: How to mark all Desktop icons as executable

I guess it was an update from xfce 4.14 to 4.16.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 552.95 KiB (Peak: 620.5 KiB) ]