Skip to content

Instantly share code, notes, and snippets.

@AjmalShajahan
Last active July 29, 2022 04:03
Show Gist options
  • Save AjmalShajahan/89e014199de05f7358dcbf9d6ac12170 to your computer and use it in GitHub Desktop.
Save AjmalShajahan/89e014199de05f7358dcbf9d6ac12170 to your computer and use it in GitHub Desktop.
How to create a Graphical UI XAMPP shortcut to Dash (Ubuntu)
### 1. Open terminal:
sudo gedit /usr/share/applications/XAMPP.desktop
### 2. Paste this script
[Desktop Entry]
Type=Application
Terminal=false
Icon=/opt/lampp/htdocs/favicon.ico
Name=XAMPP Control Panel
Comment = Start and Stop XAMPP
Exec=sudo /opt/lampp/manager-linux.run
### 3. Save file, Search 'XAMPP' on Dash. Yolo!
@AjmalShajahan
Copy link
Author

AjmalShajahan commented Jul 29, 2022

gksu was removed from ubuntu 18.04
https://bugs.launchpad.net/ubuntu/+source/umit/+bug/1740618

https://askubuntu.com/a/1254757/1602914

sudo visudo

Add the following line at the end of your file

<your-username> ALL = NOPASSWD: <path of application>

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