Ubuntu 18.04 XAMPP desktop icon âThere was an error launching the applicationâ
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
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 |Â
up vote
0
down vote
favorite
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 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
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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
edited May 18 at 16:44
![](https://i.stack.imgur.com/2jRBV.jpg?s=32&g=1)
![](https://i.stack.imgur.com/2jRBV.jpg?s=32&g=1)
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
add a comment |Â
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
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
edited Jul 26 at 11:51
answered Jul 26 at 11:35
Dani MartÃnez
12
12
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
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