How to create a reliable .desktop file in Linux?

3

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]
Name=Classificador
Type=Application
Exec=/home/projeto/app.py
Terminal=false

Why does this happen?

    
asked by anonymous 08.02.2018 / 16:46

1 answer

4

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

    
08.02.2018 / 17:09