Tuesday, April 16, 2024
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 33445  / 3 Years ago, sat, october 9, 2021, 10:17:42

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.


More From » command-line

 Answers
7

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


[#24877] Sunday, October 10, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tisglitter

Total Points: 307
Total Questions: 103
Total Answers: 119

Location: Bosnia and Herzegovina
Member since Thu, Jun 24, 2021
3 Years ago
tisglitter questions
Sun, Jan 9, 22, 16:18, 2 Years ago
Wed, Jun 1, 22, 18:03, 2 Years ago
Fri, Dec 10, 21, 14:31, 2 Years ago
;