sudo-prompt icon indicating copy to clipboard operation
sudo-prompt copied to clipboard

Use Polkit on Linux

Open jeremy447 opened this issue 6 years ago • 2 comments

sudo-prompt should use Polkit on Linux instead of the legacy Kdesudo / Gksudo / Pkexec.

jeremy447 avatar Oct 12 '19 08:10 jeremy447

I thought pkexec is the binary that interfaces with Polkit, hence the "pk"?

If not, how would you propose we use Polkit exactly? If you can provide sample code please that would be appreciated.

jorangreef avatar Nov 02 '19 06:11 jorangreef

Well I have no idea what to use :) After a little research it seem that it's pkexec that should be used indeed. That said, and I don't know if it's still the case, but there was a problem with vs code that use sudo-prompt. It seem that sudo-prompt try first kdesudo and then pkexec. So I think it shouldn't use kdesudo / gksudo or at least use them as a fallback.

https://github.com/microsoft/vscode/issues/46560

jeremy447 avatar Nov 02 '19 08:11 jeremy447