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?
1 Answer
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".
-
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
ls -alh
on theapp-file
andapp-file.sh
and update your answer?