With portable i mean an application that can be used for example for an USB drive, and don't require to 'touch' the OS file-system for run.
Under Windows, I can distribute a .zip -> .exe -> .manifest file with "requestedExecutionLevel" xml tag. Portable and request password via UAC graphically.
Under macOS, I can distribute a .tar.gz > .App -> key in info.plist. Portable and request password graphically.
Under Linux?
The correct procedure is a /usr/share/polkit-1/actions policy file and execute a binary with pkexec.
But it presume an installation to write the policy file (.deb or .rpm for example) and break portability.
We cannot rely on gksu/kdesu/beesu or similar, are deprecated and cannot be installed in recent distro (pkexec it's the recommended way).
We cannot tell (via pkexec command-line args) a local .policy file.
So, it's impossible under Linux to develop a portable application that require root privileges and GUI?
Thanks for any feedback.