1

I'm tired to add XAMPP Desktop shortcut/Luncher in my ubuntu 18.04LTS. Exec path. sudo command not executed such as admin:// command got error to run the command. How do I create XAMPP desktop shortcut on Ubuntu 18.04LTS ?

ScreenShot

Kulfy
  • 17,696
PoRaG
  • 91
  • 1
  • 4
  • 10

2 Answers2

0

I have the same problem.

I find out that the package gksu (gksudo) has been deprecated. first removed from Debian and then Canonical decided to drop it from Ubuntu 18.04. Application developers are suggested to use PolicyKit (pkexec) instead.

I suggest to look at this thread about using pkexec command in a .desktop file. I haven't try it yet (it looks a bit like an overkill for me and I don't want to mess sth up).

That's what I've got. Maybe someone else will have a better and simpler solution.

jb0hn
  • 1
0

I have following workaround. Set Terminal=true and Exec=sudo bash...

Like here:

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=myApplication
Comment=myApplication
Exec=sudo bash .../myApplication
Icon=YOUR_ICON
Terminal=true

A terminal will open and you can type your password. Maybe there is an easier solution

cleary
  • 674