Desktop Start Menu Shortcut XAMPP Linux (Ubuntu etc)

are you took below errors ?

sudo /opt/lampp/share/xampp-control-panel/xampp-control-panel
Traceback (most recent call last):
  File "xampp-control-panel.py", line 18, in <module>
    import gtk
ImportError: No module named gtk

Here how to fix show XAMPP Panel on Linux

  • Open Terminal, Type below codes
XAMPP=/usr/share/applications/xampp-control-panel.desktop
sudo touch $XAMPP
sudo gedit $XAMPP
  • content /usr/share/applications/xampp-control-panel.desktop
[Desktop Entry]
Encoding=UTF-8
Name=XAMPP Control Panel
Comment=Start and Stop XAMPP
Exec=sudo -H /opt/lampp/manager-linux-x64.run
Icon=/opt/lampp/htdocs/favicon.ico
Categories=Application
Type=Application
Terminal=false
  • If you use a 32-bit system:
sudo -H /opt/lampp/manager-linux.run
  • If you use a 64-bit system:
sudo -H /opt/lampp/manager-linux-x64.run

Result

XAMPP | WMI - https://user-images.githubusercontent.com/12471057/144911998-7459f8b8-1816-447e-a0c7-898a2cd4da49.png