Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Use Polkit on Linux #112

Open
jeremy447 opened this issue Oct 12, 2019 · 2 comments
Open

Use Polkit on Linux #112

jeremy447 opened this issue Oct 12, 2019 · 2 comments

Comments

@jeremy447
Copy link

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

@jorangreef
Copy link
Owner

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.

@jeremy447
Copy link
Author

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.

microsoft/vscode#46560

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants