Maybe you know this learn but I want say this useful shortcut and new user o Linux use that.

 
 
1.open gEdit.
2.go to View Menu>Highlight Mode>Other>.desktop [this help gedit to detect your codes].
3.and Insert bellow code in that:

#!/usr/bin/env xdg-open

[Desktop Entry]  <-- this is basic code
Type=Application <-- type of your shortcut
Terminal=true <-- must be true because we want to run Terminal's Code 
Exec=sudo /opt/lampp/lampp start <-- insert your terminal code here
Name=Lampp <-- insert a name for your shortcut

4.Now you can save your file as .desktop with your custome name.

 

By Saeb Khanzadeh

Programmer and Computer Engineer