First of all, you need to install gksu with the following command:
sudo apt-get install gksu
Then run:
gksu gedit / usr / share / applications / xampp-control-panel.desktop and save the following code in a file.
(You are using a 64-bit system, so nothing needs to be changed, just copy it)
[Desktop]
**** Encoding = UTF-8
Name = XAMPP Control Panel
Comment = Start and stop XAMPP
Exec = gksudo / opt / lampp / manager-linux-x64.run
Icon = / opt / lampp / htdocs / favicon.ico
Categories = Application
Type = Application
Terminal = false ****
Note. For the 32-bit xampp type "manager-linux.run" in the place "manager-linux-x64.run"
Run the following command in terminal:
Sudo apt-get update Now check the application, its icon has been created. You can get it from the search.
source share