I'm really unknown to in this topic so I don't even know if the way I'm phrasing it makes sense but try to follow me:
Sometimes when I download an app it comes compressed, when you extract the files there is no simple executable, I have to go to the Terminal and type ./app_name
so it runs.
A friend of mine once saw I was doing this to use this app called piskel and tried to make an executable that did that for me (open terminal and run) but failed.
So my question is why that happens? And can I make an executable that would do the job for me (like my friend tried)?
Asked
Active
Viewed 564 times
0
-
Look for "how to create a desktop shortcut in linux". I will add a basic answer below. – muyustan Mar 16 '20 at 05:47
-
It happens because you are downloading random software off the wild, dirty, unsafe internet instead of the Ubuntu Software or Snapcraft app stores. Random software is unlikely to be well-integrated into Ubuntu. Consider telling the developers of that downloaded software to distribute it via Debion and Ubuntu. Then it will have the launcher icon that you seek. – user535733 Mar 16 '20 at 06:00
1 Answers
1
This is probably not the best way, however it might save the day.
Open your terminal and locate to desktop,
cd ~/Desktop
Create a file and give it the name you want
touch appShortcutName.sh
Write the path of your application(replace . with the real path in ./app_name) into this file.
echo /path/to/your/app_name > appShortcutName.sh
The file is not executable right now, so you cannot run it via double clicking. Change file permissions.
chmod u+x appShortcutName.sh
After all these, you should be able to run it by double clicking.
For better solutions, check : How can I create launchers on my desktop?

muyustan
- 268
-
Well, your solution is the same as my friend. They both give the error message "Warning: execve: Error in exec format" :/ – Yasmin Líbano Mar 16 '20 at 16:08
-
@YasminLíbano did you follow exactly the same steps as I wrote? Because I have tried it after I write this one and it did work. – muyustan Mar 16 '20 at 16:19
-
yes, I did, twice, when I click on the .sh file it opens in the text editor :/ – Yasmin Líbano Mar 20 '20 at 02:08
-
@YasminLíbano did the chmod command ececute succesfully? Try replacing u+x with ugo+x – muyustan Mar 20 '20 at 04:05