I've had Xampp installed on my machine for a while but I have yet to figure out how to start the GUI from a shortcut.
At the moment I am launching
sudo /opt/lampp/manager-linux-x64.run
From the terminal every time I want to start it, but it's pretty annoying to have to go through the terminal for this every single time.
I have already tried pasting that command in a shortcut and when I try to start it nothing happens. Here's how my shortcut looks:
Any idea how I can get this to work?
Follow this link.
https://junise.wordpress.com/2017/07/23/xampp-in-ubuntu-desktop-shortcut-launcher-entry-home-folder-shortcut-inside-htdocs/
Change this sentence:
And add:
at the end of .desktop file.
I'm using lampp, but this solution worked for me in ubuntu 18.04. I think it should work for you too, good luck.
edit: You may need to modify some of the content in
/usr/share/polkit-1/actions/xampp.policy
for example the line that reads<annotate key="org.freedesktop.policykit.exec.path">/opt/lampp/manager-linux-x64.run</annotate>
you should change that to reflect your path instead like this
/opt/xampp/manager-linux-x64.run
I don't remember if xampp installs into /opt/lampp or not, but check that your path is correct.
Create a file in
/bin/lampp
withvim
:and insert into file :
and save it.
Then you can use
sudo lampp
in terminal in order to start the App.The screenshots below show the steps that I described: