lxde desktop shortcut remove prompt that ask action (open execute)

user340971 asked:

I’ve create a simple file.desktop from chromium but every time I click on it it prompt :

this file seems a script whatn you want to do?

Execute Execute in terminal Open Cancel

This happen with all files .desktop on the Desktop folder.

this is an example:

#!/usr/bin/env xdg-open

[Desktop Entry]
Exec=/usr/bin/chromium --profile-directory=Default --app-id=ffgolldjdihlhdjkieofmjgjikkcbjbj

How can I set all for Execution without prompt?

My answer:

The string #!/usr/bin/env xdg-open should not be in a .desktop file.

These files are simple INI files defining how to open an application, not scripts to be executed.

Delete this erroneous line and try again.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.