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.

@viniciuscgp
Copy link

viniciuscgp commented Jun 24, 2021

Man, you saved my day. I've searched all day trying to execute this script from dekstop and failed. Now with your help it worked. Thank you!

@ijash
Copy link
Author

ijash commented Jun 25, 2021

@viniciuscgp glad to help. :)

@jcamorgan
Copy link

Me too. Thanks!

@kevocodes
Copy link

Thanks man! c: It works for me on linux mint 20.03

@AlexxBelous
Copy link

thanks you!!!

@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