0

I need to create two .desktop files for launching, from the dock or menu, two application that are currently launched from the terminal with ./app-file and ./app-file.sh commands. I have already created with success the two .desktop files in an Ubuntu installation simply inserting the application path in the "Exec" key but this method doesn't work in Elementary OS. I tried to use "AppEditor" utility to create the menu entries but inserting the application path in the Exec field but the utility does not recognize the app-file as an executable. How can i solve these problems?

3
  • 1
    Please split the 2 issue in two different question, is way easier to help you that way! Can you please run ls -alh on the app-file and app-file.sh and update your answer?
    – endorama
    Jan 21, 2020 at 15:41
  • 1
    Thanks a lot, Your hint allowed me to understand and solve the problem by updating the file permissions as executable.
    – Andrew-63
    Jan 21, 2020 at 17:46
  • 1
    can you answer your question with the solution and later accept it?
    – Bo rislav
    Jan 23, 2020 at 12:53

1 Answer 1

0

Running the ls -alh command, as suggested in the "endorama" comment, allowed me to understand that app-file and app-file.sh did not have execute permission. So I changed the permissions by adding the "execute" permission on each file: right-click-> Properties (context menù)-> "Permissions" (pop-up windows) -> "Execute".

1
  • if this is a multiuser system ... you MAY need to alter permissions on those files again ... in this case you may want the executable flags set for user, group, and other Jan 24, 2020 at 19:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.