Ubuntu 18.04 XAMPP desktop icon “There was an error launching the application”





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I created an icon on the desktop and entered the following code:



[Desktop Entry]
Encoding=UTF-8
Name=XAMPP Control Panel
Comment=Start and Stop XAMPP
Exec=gksudo /opt/lampp/manager-linux-x64.run
Icon=/opt/lampp/htdocs/favicon.ico
Categories=Application
Type=Application
Terminal=false


When I launch the application I get "There was an error launching the application"



If I go into the terminal and type sudo /opt/lampp/manager-linux-x64.run, it works fine. I tried changing gksudo to sudo but that didn't work either.



What am I doing wrong?










share|improve this question

























  • gksudo isn't included by default in 18.04, are you using Wayland or X11?

    – Eskander Bejaoui
    May 18 '18 at 14:56











  • I'm using Xorg. I tried admin:///opt/lampp/manager-linux-x64.run but that didn't work either.

    – eric
    May 18 '18 at 15:32




















0















I created an icon on the desktop and entered the following code:



[Desktop Entry]
Encoding=UTF-8
Name=XAMPP Control Panel
Comment=Start and Stop XAMPP
Exec=gksudo /opt/lampp/manager-linux-x64.run
Icon=/opt/lampp/htdocs/favicon.ico
Categories=Application
Type=Application
Terminal=false


When I launch the application I get "There was an error launching the application"



If I go into the terminal and type sudo /opt/lampp/manager-linux-x64.run, it works fine. I tried changing gksudo to sudo but that didn't work either.



What am I doing wrong?










share|improve this question

























  • gksudo isn't included by default in 18.04, are you using Wayland or X11?

    – Eskander Bejaoui
    May 18 '18 at 14:56











  • I'm using Xorg. I tried admin:///opt/lampp/manager-linux-x64.run but that didn't work either.

    – eric
    May 18 '18 at 15:32
















0












0








0


1






I created an icon on the desktop and entered the following code:



[Desktop Entry]
Encoding=UTF-8
Name=XAMPP Control Panel
Comment=Start and Stop XAMPP
Exec=gksudo /opt/lampp/manager-linux-x64.run
Icon=/opt/lampp/htdocs/favicon.ico
Categories=Application
Type=Application
Terminal=false


When I launch the application I get "There was an error launching the application"



If I go into the terminal and type sudo /opt/lampp/manager-linux-x64.run, it works fine. I tried changing gksudo to sudo but that didn't work either.



What am I doing wrong?










share|improve this question
















I created an icon on the desktop and entered the following code:



[Desktop Entry]
Encoding=UTF-8
Name=XAMPP Control Panel
Comment=Start and Stop XAMPP
Exec=gksudo /opt/lampp/manager-linux-x64.run
Icon=/opt/lampp/htdocs/favicon.ico
Categories=Application
Type=Application
Terminal=false


When I launch the application I get "There was an error launching the application"



If I go into the terminal and type sudo /opt/lampp/manager-linux-x64.run, it works fine. I tried changing gksudo to sudo but that didn't work either.



What am I doing wrong?







xampp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 18 '18 at 16:44









Eranda Peiris

645516




645516










asked May 18 '18 at 14:34









ericeric

111




111













  • gksudo isn't included by default in 18.04, are you using Wayland or X11?

    – Eskander Bejaoui
    May 18 '18 at 14:56











  • I'm using Xorg. I tried admin:///opt/lampp/manager-linux-x64.run but that didn't work either.

    – eric
    May 18 '18 at 15:32





















  • gksudo isn't included by default in 18.04, are you using Wayland or X11?

    – Eskander Bejaoui
    May 18 '18 at 14:56











  • I'm using Xorg. I tried admin:///opt/lampp/manager-linux-x64.run but that didn't work either.

    – eric
    May 18 '18 at 15:32



















gksudo isn't included by default in 18.04, are you using Wayland or X11?

– Eskander Bejaoui
May 18 '18 at 14:56





gksudo isn't included by default in 18.04, are you using Wayland or X11?

– Eskander Bejaoui
May 18 '18 at 14:56













I'm using Xorg. I tried admin:///opt/lampp/manager-linux-x64.run but that didn't work either.

– eric
May 18 '18 at 15:32







I'm using Xorg. I tried admin:///opt/lampp/manager-linux-x64.run but that didn't work either.

– eric
May 18 '18 at 15:32












1 Answer
1






active

oldest

votes


















0














This worked for me on Ubuntu 18.04.



First you need to install the package "nautilus-admin":



sudo apt-get update
sudo apt-get install nautilus-admin


Create a new file in "/usr/share/polkit-1/actions/xampp.policy" with:



sudo nano /usr/share/polkit-1/actions/xampp.policy


Add this content:



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>

<action id="org.freedesktop.policykit.pkexec.run-xampp">
<description>Run the Xampp Control Panel</description>
<message>Authentication is required to run the Xampp Control Panel</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/opt/lampp/manager-linux-x64.run</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
</action>
</policyconfig>


To end, create a new file or edit the desktop entry on /usr/share/applications/xampp-control-panel.desktop and replace Exec=gksudo /opt/lampp/manager-linux-x64.run with Exec=pkexec /opt/lampp/manager-linux-x64.run:



sudo nano /usr/share/applications/xampp-control-panel.desktop



[Desktop Entry]
Encoding=UTF-8
Name=XAMPP Control Panel
Comment=Start and Stop XAMPP
Exec=pkexec /opt/lampp/manager-linux-x64.run
Icon=/opt/lampp/htdocs/favicon.ico
Categories=Application
Type=Application
Terminal=false


I hope it helps.






share|improve this answer


























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1037792%2fubuntu-18-04-xampp-desktop-icon-there-was-an-error-launching-the-application%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    This worked for me on Ubuntu 18.04.



    First you need to install the package "nautilus-admin":



    sudo apt-get update
    sudo apt-get install nautilus-admin


    Create a new file in "/usr/share/polkit-1/actions/xampp.policy" with:



    sudo nano /usr/share/polkit-1/actions/xampp.policy


    Add this content:



    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE policyconfig PUBLIC
    "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
    "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
    <policyconfig>

    <action id="org.freedesktop.policykit.pkexec.run-xampp">
    <description>Run the Xampp Control Panel</description>
    <message>Authentication is required to run the Xampp Control Panel</message>
    <defaults>
    <allow_any>no</allow_any>
    <allow_inactive>no</allow_inactive>
    <allow_active>auth_admin_keep</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/opt/lampp/manager-linux-x64.run</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
    </action>
    </policyconfig>


    To end, create a new file or edit the desktop entry on /usr/share/applications/xampp-control-panel.desktop and replace Exec=gksudo /opt/lampp/manager-linux-x64.run with Exec=pkexec /opt/lampp/manager-linux-x64.run:



    sudo nano /usr/share/applications/xampp-control-panel.desktop



    [Desktop Entry]
    Encoding=UTF-8
    Name=XAMPP Control Panel
    Comment=Start and Stop XAMPP
    Exec=pkexec /opt/lampp/manager-linux-x64.run
    Icon=/opt/lampp/htdocs/favicon.ico
    Categories=Application
    Type=Application
    Terminal=false


    I hope it helps.






    share|improve this answer






























      0














      This worked for me on Ubuntu 18.04.



      First you need to install the package "nautilus-admin":



      sudo apt-get update
      sudo apt-get install nautilus-admin


      Create a new file in "/usr/share/polkit-1/actions/xampp.policy" with:



      sudo nano /usr/share/polkit-1/actions/xampp.policy


      Add this content:



      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE policyconfig PUBLIC
      "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
      "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
      <policyconfig>

      <action id="org.freedesktop.policykit.pkexec.run-xampp">
      <description>Run the Xampp Control Panel</description>
      <message>Authentication is required to run the Xampp Control Panel</message>
      <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
      </defaults>
      <annotate key="org.freedesktop.policykit.exec.path">/opt/lampp/manager-linux-x64.run</annotate>
      <annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
      </action>
      </policyconfig>


      To end, create a new file or edit the desktop entry on /usr/share/applications/xampp-control-panel.desktop and replace Exec=gksudo /opt/lampp/manager-linux-x64.run with Exec=pkexec /opt/lampp/manager-linux-x64.run:



      sudo nano /usr/share/applications/xampp-control-panel.desktop



      [Desktop Entry]
      Encoding=UTF-8
      Name=XAMPP Control Panel
      Comment=Start and Stop XAMPP
      Exec=pkexec /opt/lampp/manager-linux-x64.run
      Icon=/opt/lampp/htdocs/favicon.ico
      Categories=Application
      Type=Application
      Terminal=false


      I hope it helps.






      share|improve this answer




























        0












        0








        0







        This worked for me on Ubuntu 18.04.



        First you need to install the package "nautilus-admin":



        sudo apt-get update
        sudo apt-get install nautilus-admin


        Create a new file in "/usr/share/polkit-1/actions/xampp.policy" with:



        sudo nano /usr/share/polkit-1/actions/xampp.policy


        Add this content:



        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE policyconfig PUBLIC
        "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
        "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
        <policyconfig>

        <action id="org.freedesktop.policykit.pkexec.run-xampp">
        <description>Run the Xampp Control Panel</description>
        <message>Authentication is required to run the Xampp Control Panel</message>
        <defaults>
        <allow_any>no</allow_any>
        <allow_inactive>no</allow_inactive>
        <allow_active>auth_admin_keep</allow_active>
        </defaults>
        <annotate key="org.freedesktop.policykit.exec.path">/opt/lampp/manager-linux-x64.run</annotate>
        <annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
        </action>
        </policyconfig>


        To end, create a new file or edit the desktop entry on /usr/share/applications/xampp-control-panel.desktop and replace Exec=gksudo /opt/lampp/manager-linux-x64.run with Exec=pkexec /opt/lampp/manager-linux-x64.run:



        sudo nano /usr/share/applications/xampp-control-panel.desktop



        [Desktop Entry]
        Encoding=UTF-8
        Name=XAMPP Control Panel
        Comment=Start and Stop XAMPP
        Exec=pkexec /opt/lampp/manager-linux-x64.run
        Icon=/opt/lampp/htdocs/favicon.ico
        Categories=Application
        Type=Application
        Terminal=false


        I hope it helps.






        share|improve this answer















        This worked for me on Ubuntu 18.04.



        First you need to install the package "nautilus-admin":



        sudo apt-get update
        sudo apt-get install nautilus-admin


        Create a new file in "/usr/share/polkit-1/actions/xampp.policy" with:



        sudo nano /usr/share/polkit-1/actions/xampp.policy


        Add this content:



        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE policyconfig PUBLIC
        "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
        "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
        <policyconfig>

        <action id="org.freedesktop.policykit.pkexec.run-xampp">
        <description>Run the Xampp Control Panel</description>
        <message>Authentication is required to run the Xampp Control Panel</message>
        <defaults>
        <allow_any>no</allow_any>
        <allow_inactive>no</allow_inactive>
        <allow_active>auth_admin_keep</allow_active>
        </defaults>
        <annotate key="org.freedesktop.policykit.exec.path">/opt/lampp/manager-linux-x64.run</annotate>
        <annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
        </action>
        </policyconfig>


        To end, create a new file or edit the desktop entry on /usr/share/applications/xampp-control-panel.desktop and replace Exec=gksudo /opt/lampp/manager-linux-x64.run with Exec=pkexec /opt/lampp/manager-linux-x64.run:



        sudo nano /usr/share/applications/xampp-control-panel.desktop



        [Desktop Entry]
        Encoding=UTF-8
        Name=XAMPP Control Panel
        Comment=Start and Stop XAMPP
        Exec=pkexec /opt/lampp/manager-linux-x64.run
        Icon=/opt/lampp/htdocs/favicon.ico
        Categories=Application
        Type=Application
        Terminal=false


        I hope it helps.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Sep 14 '18 at 7:26

























        answered Jul 26 '18 at 11:35









        Dani MartínezDani Martínez

        12




        12






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1037792%2fubuntu-18-04-xampp-desktop-icon-there-was-an-error-launching-the-application%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents