jansorg
(Joachim Ansorg)
August 12, 2026, 8:23am
1
How can plugins execute sudo commands in a compliant way?
ExecUtil marked all sudo methods as @Internal and SudoCommandProvider is the same.
Are plugins expected to prompt for the password to run sudo on their own?
That’s probably not very reassuring for end-users, though
I asked this last year and got no reply: Using internal `SudoCommandProvider`?
Joachim Ansorg:
SudoCommandProvider
At the moment you can only repeat code of com.intellij.execution.sudo.LocalSudoCommandProvider with GeneralCommandLine.
We can promote some of ExecUtil APIs in the future, but there are no definite plans so far.
jansorg
(Joachim Ansorg)
August 12, 2026, 9:04am
3
Thanks!
I found ElevationSerive, which is @Experimental. It seems suitable, but doesn’t documentation on its purpose. Would that be a replacement or was it made for something else?