Skip to content

Instantly share code, notes, and snippets.

@ijash
Last active September 23, 2024 22:37
Show Gist options
  • Save ijash/46f12d87e42b93c51e3be03ac06a3b5e to your computer and use it in GitHub Desktop.
Save ijash/46f12d87e42b93c51e3be03ac06a3b5e to your computer and use it in GitHub Desktop.
XAMPP/LAMPP desktop shortcut or menu icon for linux mint 19.1

XAMPP/LAMPP desktop shortcut or menu icon for linux mint 19.1

in terminal: xed admin:///usr/share/applications/xampp-control-panel.desktop then add:

#!/usr/bin/env xdg-open
[Desktop Entry]
Comment=Start or Stop XAMPP
Name=XAMPP Control Panel
Exec=sh -c "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY sudo /opt/lampp/manager-linux-x64.run"
Encoding=UTF-8
Terminal=false
Name[en_US]=XAMPP Control Panel
Comment[en_US]=Start or Stop XAMPP GUI
Type=Application
Icon=xampp

save.

@maxryan02
Copy link

thanks man .
or you can create new document
Paste below

#!/usr/bin/env xdg-open
[Desktop Entry]
Comment=Start or Stop XAMPP
Name=XAMPP Control Panel
Exec=sh -c "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY sudo /opt/lampp/manager-linux-x64.run"
Encoding=UTF-8
Terminal=false
Name[en_US]=XAMPP Control Panel
Comment[en_US]=Start or Stop XAMPP GUI
Type=Application
Icon=xampp

and save with name xampp-control-panel.desktop

@subrota24
Copy link

Thanks bro

@VladimirGrebenev
Copy link

🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment