1

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:

enter image description here

Any idea how I can get this to work?

2 Answers2

3

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:

Exec=sudo /opt/lampp/manager-linux-x64.run

And add:

Terminal=true

at the end of .desktop file.

Kulfy
  • 17,696
-1

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.

Pachuca
  • 379