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;
}
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
add a comment |
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
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
add a comment |
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
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
xampp
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
edited Sep 14 '18 at 7:26
answered Jul 26 '18 at 11:35
Dani MartínezDani Martínez
12
12
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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