cannot create launcher icon xampp with gksu on ubuntu 18.04

Asked by Alauddin Afif Cassandra

why ubuntu 18.04 stable release cannot create icon launcher app.
i'm create icon launcher for xampp

this is my code

 [Desktop Entry]
Encoding=UTF-8
Name=Xampp Control Panel
Comment=Start or Stop XAMPP
Exec=gksudo python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py
Icon=/opt/lampp/htdocs/favicon.ico
Terminal=0
Type=Application

i'm to try change code:

 [Desktop Entry]
Encoding=UTF-8
Name=Xampp Control Panel
Comment=Start or Stop XAMPP
Exec=python admin:///opt/lampp/share/xampp-control-panel/xampp-control-panel.py
Icon=/opt/lampp/htdocs/favicon.ico
Terminal=0
Type=Application

i'm to try add to "add startup programm" with:
sudo /opt/lamp/lamp start

and still failed
anyone can helpme?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jeremy Bícha (jbicha) said :
#1

admin:// is only for opening files. You would need to use PolicyKit for running programs or scripts. I suggest asking on askubuntu.com since it is a lot more popular than answers.launchpad.net.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

There is no gksudo or gksu for Bionic

Can you help with this problem?

Provide an answer of your own, or ask Alauddin Afif Cassandra for more information if necessary.

To post a message you must log in.