Open millerthegorilla opened 5 years ago
In my Factor port of elevate I added lowered
, I plan to add it here in a future pull request. It's pretty simple to quickly implement for your own code though, much simpler than elevate
, so you could just do that until it makes it into master.
By the way, it's not possible / a no-op on Windows, so the implementation only makes sense on POSIX / Unix
My implementation in a concatenative language
StackOverflow Example in C, easy to translate to Python
pkexec window wouldn't disappear, and the process didn't continue executing.
Is a separate bug. Please write a new issue including your code (or was it just the example code?) and your platform information, Python version etc
This seems like a great idea. I tried it it though and the pkexec window wouldn't disappear, and the process didn't continue executing. Is there a way of demoting the process to std user privileges afterwards?