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]
Version=1.0
Terminal=false
Type=Application
Name=PROVA
Exec=/usr/bin/chromium --profile-directory=Default --app-id=ffgolldjdihlhdjkieofmjgjikkcbjbj
Icon=chrome-ffgolldjdihlhdjkieofmjgjikkcbjbj-Default
StartupWMClass=crx_ffgolldjdihlhdjkieofmjgjikkcbjbj

How can I set all for Execution without prompt?

migrated from serverfault.com Dec 12 at 6:06

This question came from our site for system and network administrators.

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.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.