for example, this terminal command: ping www.google.com so my question is how can I create a launcher in my desktop can do this command, so there is no longer needs to open terminal every time and write this it.

share|improve this question
up vote 6 down vote accepted

Well you could create a new document on your Desktop, name it something.desktop like ping1.desktop

Then put this in, Name= & Icon= lines can be whatever you want (usually best to full path Icon=) or you can leave Icon= blank

[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
Exec=ping www.google.com
Name=whatever you want
Icon= 

After creating right click on the launcher > Properties > Permissions > & check the Execute: box

(- you could also extend it's use to other pings if you use in unity's launcher via added quicklist entries in the .desktop

share|improve this answer
    
it worked, thank you my friend :) – Mohammad Jun 1 '14 at 3:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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