Need some clarification about the permissions of .desktop
files. I can see all the .desktop
files in /usr/share/applications/
owned by root have permission,
-rw-r--r--
also examples.desktop
at $HOME
owned by user has the same permission. All of those run properly.
But when I am going to create a custom .desktop
file having the same permission it is throwing the following error message,
Untrusted application launcher
The application launcher "myapp.desktop" has not been marked as trusted. If you do not know the source of this file, launching it may be unsafe.
But adding the execution permission is allowing it to run without any issue.
Q: Why custom
.desktop
files need to have+x
permissions to run or how some.desktop
files can run without execution permission? Is it possible to run a custom.desktop
file without execution permission?