Skip to content

Instantly share code, notes, and snippets.

Last active September 13, 2022 13:16
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Setup launcher icon (.desktop file) for AMPPS. Tested for elementaryOS freya, but should work with most ubuntu derivates.
#!/usr/bin/env bash
# AMPPS wants to be already in the right working directory
cd /usr/local/ampps;
# And since we're there now, we can use the shorthand to start
[Desktop Entry]
Comment=Web Development Stack of Softaculous
#!/usr/bin/env bash
# AMPPS wants root rights, but because the working directory is also important, we need to call another helper script as root
# this is the pkexec variant
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/local/share/amppsbootstrap
# this is the gksudo variant
#gksudo /usr/local/share/amppsbootstrap

Fix/Create AMPPS Launcher icon (.desktop file)

Install AMPPS with default options (at this time of writing there are no options). Expecting it is installed in /usr/local/ampps/*

Since its important to place the new files at specific locations, you need to adapt the filename as requested. All files are owned by root.

ampps_starter: place this file exactly as /usr/local/bin/ampps and make it executable

ampps_bootstrapper: place this file exactly as /usr/local/share/amppsbootstrap and make it executable

ampps_desktop: place this file exactly as /usr/share/applications/ampps.desktop


Copy link

Thank you @dionysius and @sobujbd!

Copy link

maravento commented Oct 7, 2021

it doesn't' work with Ampps 3.9. fix this:
sudo QT_X11_NO_MITSHM=1 /usr/local/ampps/Ampps

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