fehlix wrote: Tue Aug 03, 2021 6:16 am
abhidesh128 wrote: Tue Aug 03, 2021 2:11 am
Can I use mx-pkexec to launch apps other than the MX's ones ? Or is it specifically written for MX apps ?
Should I use pkexec or mx-pkexec in this case ? Because when I use pkexec, nothing happens.
pkexec without any adjustment would prohibit to launch GUI apps as root (for a good reason.)
The mx-pkexec helper tool provides a way to circumvent this restriction needed for some GUI apps made by MX Linux. But I would not recommend to always use it this way for 3rd party apps in general.
The way I would do it would be to launch such non-MX Linux APP through the terminal using sudo.
So in your example this way:
Change the Exec line of the desktop-starter to
Code: Select all
Exec=x-terminal-emulator -e sh -c "cd /opt/lampp; sudo -k; sudo -H ./manager-linux-x64.run"
when i try this, on terminal something like this came up
$ sudo Exec=x-terminal-emulator -e sh -c "cd /opt/lampp; sudo -k; sudo -H ./manager-linux-x64.run"
sudo: you may not specify environment variables in edit mode
usage: sudo -h | -K | -k | -V
usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user]
[VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] file ...
Maybe I did something wrong or I missing something ?