How to create a. trusted desktop file on Linux?

Asked

Viewed 1,882 times

3

I have the following file . desktop to open a file in Python, it is working, but every time before running opens a dialog box saying that the application launcher is unreliable as per the image below:

inserir a descrição da imagem aqui

Desktop file:

[Desktop Entry]
Name=Classificador
Type=Application
Exec=/home/projeto/app.py
Terminal=false

Why does this happen?

  • The graphical environment is Gnome, right? I don’t know if it does, but maybe there might be some distinction in the case of kde...

2 answers

6


This happens because the shortcut does not have run permissions, it is valid for both Gnome and KDE for what I know

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

Ex.: chmod +x arquivo.desktop

0

I had already marked as executable, but gave the same message of unreliable application. What you solved for me was copying the launcher to the /usr/share/Applications folder

Browser other questions tagged

You are not signed in. Login or sign up in order to post.