How to create a reliable .desktop file in Linux?

Posted on

Question :

I have the following .desktop file to open a file in Python , it is working, but every time before running it opens a dialog saying that the application launcher is not trustworthy, as shown below: / p>

Desktop File:

[Desktop Entry]

Why does this happen?


Answer :

This is because the shortcut does not have execute permissions, this holds for both Gnome and KDE by what I know

You can assign execution permission with chmod and with the + x

Eg: chmod +x arquivo.desktop


Leave a Reply

Your email address will not be published. Required fields are marked *