ApacheFriends / xampp-build

XAMPP Build system
Apache License 2.0
41 stars 10 forks source link

Create a menu item for the control panel on Linux #8

Open hamishmb opened 1 year ago

hamishmb commented 1 year ago

Hi there,

I've used XAMPP a fair bit over the years to make things a bit simpler while I work on changes to my website. I've noticed that while you have a control panel for Linux, you don't add a menu item for it into the system menu. One can be created, together with a polkit action, fairly easily as documented here: https://community.apachefriends.org/f/viewtopic.php?uid=163301&f=17&t=77266&start=0

Here's the menu item I created for myself:

#!/usr/bin/env xdg-open
[Desktop Entry]
Comment=
Terminal=false
Name=XAMPP Control Panel
Exec=pkexec /opt/lampp/manager-linux-x64.run
Type=Application
Icon=gnome-panel-launcher

If I can do anything else to help, let me know.

Hamish

beltran-rubo commented 1 year ago

Thanks! That is a great suggestion, would you like to add that file as part of XAMPP Linux? As it is a small snippet and it would depend on the Linux distro or desktop environment a possible approach is to add to the FAQ, thoughts?

hamishmb commented 1 year ago

I'd be very happy to add the menu item and polkit action, yes.

It could be added to the FAQ, but I think this should be fairly distro-agnostic - I'm happy to test that with a bunch of different distros in virtual machines if needed. I assume your users are mostly Debian/Ubuntu (or derivatives) and Fedora (or derivatives) users.