I want to make a launcher which opens a random application. So I looked it up on this site and I found this:

But I have a right-click menu on my desktop that looks like this:


So now I still don't know how to create launchers. Does anyone know a way for dummies?


1 Answer 1


Starting with Ubuntu 11.10, this is the fastest way (at least for me) to create a new launcher on your desktop.

That being said, let's make a script called random_app which will open a random application:



random_app=$(grep -m 1 "^Exec" "$apps_path$(ls $apps_path | shuf -n 1)" | \
           awk -F'[=| ]' '{ print $2 }')


Save the script in your ~/bin directory and make it executable using the following command in terminal:

chmod +x ~/bin/random_app

Now, you can create a launcher on your desktop as it is explained here for the script random_app:

create launcher

  • i know, that what you are saying, is supposed to be correct, thats why i marked it as accepted, but new problems have come, could you help me ones more? i've added the new problem in the question.
    – Coolykoen
    Nov 7, 2013 at 13:04
  • @user211999 I believe you forget to rename the directory "Desktop" in the command, to the name of the "Desktop" in your language. Nov 7, 2013 at 14:18
  • @user211999 Now, please, if you have more question, please don't add them to the same question, use Ask Question button instead. Nov 7, 2013 at 14:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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