Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Create XAMPP Control Panel launcher on the Desktop

  1. #1
    Join Date
    May 2016
    Beans
    2

    Create XAMPP Control Panel launcher on the Desktop

    Hello everyone and greetings from Brazil! Here's a little tutorial I've created to make a shortcut for XAMPP Control Panel on the Desktop.

    To create a launcher on the Desktop:
    You need gksu so if you don't have it yet, run in terminal:
    sudo apt-get install gksu
    Now let's create the shortcut:
    Run gedit (or any other text editor) and then enter the info below:

    Code:
    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Version=1.0
    Type=Application
    Terminal=false
    Icon[en_US]=/opt/lampp/htdocs/favicon.ico
    Name[en_US]=XAMPP
    Exec=gksu /opt/lampp/manager-linux-x64.run
    Comment[en_US]=Start XAMPP Control Panel
    Name=XAMPP
    Comment=Start XAMPP Control Panel
    Icon=/opt/lampp/htdocs/favicon.ico
    Save the file on your Desktop as Xampp.desktop

    Once the shortcut is on the Desktop, right-click on it, go to Properties, Permissions tab, and check 'Allow executing file as program'

    That's it guys! Have fun.

    JC
    Last edited by jcrcarmo; May 18th, 2016 at 08:08 AM.

  2. #2
    Join Date
    May 2016
    Beans
    2

    Re: Create XAMPP Control Panel launcher on the Desktop

    its not working on me, when i double click it, it open gedit again
    do i miss something?
    im using the latest xampp 7.0.6

  3. #3
    Join Date
    May 2016
    Beans
    2

    Re: Create XAMPP Control Panel launcher on the Desktop

    That's really weird... It should work because it's exactly how I did on my system and it works perfectly. Did you save the file as xampp.desktop ? And also you have to allow it to run as a program. Follow all the steps above and it should work.

  4. #4
    Join Date
    Apr 2015
    Beans
    2

    Re: Create XAMPP Control Panel launcher on the Desktop

    The instructions worked perfectly for me with just some minor changes because I am using Xubuntu. Thanks!

  5. #5
    Join Date
    Aug 2016
    Beans
    17

    Re: Create XAMPP Control Panel launcher on the Desktop

    Noob here, so I did everything on the instructions above. It worked. But what I can do with this right now? I can compile PHP files now?

  6. #6
    Join Date
    Aug 2014
    Beans
    1

    Re: Create XAMPP Control Panel launcher on the Desktop

    Thanks is working perfectly n.n
    This should be added by default by xampp

  7. #7
    Join Date
    May 2018
    Beans
    1

    Re: Create XAMPP Control Panel launcher on the Desktop

    Thanks for this!

    This is my slightly modified version for Ubuntu 18.04.

    gksu is not part of Ubuntu 18.04 as I found out and also adding StartupWMClass=osxmanager (See link below) prevents the launcher adding a second window to the dock.

    Code:
    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Version=1.0
    Type=Application
    StartupWMClass=osxmanager
    Terminal=false
    Icon[en_US]=/opt/lampp/htdocs/favicon.ico
    Name[en_US]=XAMPP
    Exec=sudo -H /opt/lampp/manager-linux-x64.run
    Comment[en_US]=Start XAMPP Control Panel
    Name=XAMPP
    Comment=Start XAMPP Control Panel
    Icon=/opt/lampp/htdocs/favicon.ico
    https://askubuntu.com/questions/4037...launcher-items

  8. #8
    Join Date
    Jun 2018
    Beans
    5

    Re: Create XAMPP Control Panel launcher on the Desktop

    Hi,
    I use Lubuntu 18 and applied updated code but note working. It worked with gksu in previous version of lubuntu. What to do please suggest.

    Quote Originally Posted by dnaldoog View Post
    Thanks for this!

    This is my slightly modified version for Ubuntu 18.04.

    gksu is not part of Ubuntu 18.04 as I found out and also adding StartupWMClass=osxmanager (See link below) prevents the launcher adding a second window to the dock.

    Code:
    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Version=1.0
    Type=Application
    StartupWMClass=osxmanagerTerminal=false
    Icon[en_US]=/opt/lampp/htdocs/favicon.ico
    Name[en_US]=XAMPP
    Exec=sudo -H /opt/lampp/manager-linux-x64.run
    Comment[en_US]=Start XAMPP Control Panel
    Name=XAMPP
    Comment=Start XAMPP Control Panel
    Icon=/opt/lampp/htdocs/favicon.ico
    https://askubuntu.com/questions/4037...launcher-items

  9. #9
    Join Date
    Jul 2018
    Beans
    1

    Re: Create XAMPP Control Panel launcher on the Desktop

    Hi,

    I don't know if you've found a fix yet but in case you didn't... I got it working by replacing `sudo -H` with `pkexec`

    Thanks @dnaldoog for your config!

    Btw my `XAMPP.desktop` looks like this:

    Code:
    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Version=1.0
    Type=Application
    StartupWMClass=osxmanager
    Terminal=false
    Icon[en_US]=/opt/lampp/htdocs/favicon.ico
    Name[en_US]=XAMPP
    Exec=pkexec /opt/lampp/manager-linux-x64.run
    Comment[en_US]=Start XAMPP Control Panel
    Name=XAMPP
    Comment=Start XAMPP Control Panel
    Icon=/opt/lampp/htdocs/favicon.ico
    Quote Originally Posted by kaysar View Post
    Hi,
    I use Lubuntu 18 and applied updated code but note working. It worked with gksu in previous version of lubuntu. What to do please suggest.

  10. #10
    Join Date
    Nov 2018
    Beans
    1

    Re: Create XAMPP Control Panel launcher on the Desktop

    I tried all the options above, but didn't work. I click on icon and nothing happens.

    I use Ubuntu 18.04.1 LTS, GNOME 3.28.2

    P.S. When I use Terminal, xampp works.
    Last edited by marcelobbt; November 20th, 2018 at 04:19 AM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •