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

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite
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






















  • gksudo isn't included by default in 18.04, are you using Wayland or X11?
    – Eskander Bejaoui
    May 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 at 15:32















up vote
0
down vote

favorite
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






















  • gksudo isn't included by default in 18.04, are you using Wayland or X11?
    – Eskander Bejaoui
    May 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 at 15:32













up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






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?









share|improve this question













share|improve this question




share|improve this question








edited May 18 at 16:44









Eranda Peiris

661416




661416










asked May 18 at 14:34









eric

1




1











  • gksudo isn't included by default in 18.04, are you using Wayland or X11?
    – Eskander Bejaoui
    May 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 at 15:32

















  • gksudo isn't included by default in 18.04, are you using Wayland or X11?
    – Eskander Bejaoui
    May 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 at 15:32
















gksudo isn't included by default in 18.04, are you using Wayland or X11?
– Eskander Bejaoui
May 18 at 14:56




gksudo isn't included by default in 18.04, are you using Wayland or X11?
– Eskander Bejaoui
May 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 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 at 15:32











1 Answer
1






active

oldest

votes

















up vote
0
down vote













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


With 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 destktop 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:



[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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    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


    With 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 destktop 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:



    [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


























      up vote
      0
      down vote













      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


      With 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 destktop 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:



      [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
























        up vote
        0
        down vote










        up vote
        0
        down vote









        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


        With 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 destktop 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:



        [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


        With 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 destktop 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:



        [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 Jul 26 at 11:51

























        answered Jul 26 at 11:35









        Dani Martínez

        12




        12






















             

            draft saved


            draft discarded


























             


            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













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491