I was following a link to add Xampp server in "Show all application" section where normally we can see all GUI apps installed.
But it's different in case of Xampp. We have to do things manually. So I opened the file using:
pkexec nano /usr/share/applications/xampp-control-panel.desktop
Because I can't use this:
007@bond:~$ pkexec gedit /usr/share/applications/xampp-control-panel.desktop Unable to init server: Could not connect: Connection refused (org.gnome.gedit:17349): Gtk-WARNING **: 20:18:25.529: cannot open display:
Anyhow when I tried putting to check whether Xampp run pkexec, I got this error:
007@bond:~$ Exec=pkexec /opt/lampp/manager-linux-x64.run bash: /opt/lampp/manager-linux-x64.run: Permission denied
- Isn't pkexec is a replacement of gksudo? Then why don't it works sometimes?