elevate icon indicating copy to clipboard operation
elevate copied to clipboard

question - can there be a demote function

Open millerthegorilla opened this issue 5 years ago • 2 comments

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?

millerthegorilla avatar Mar 23 '19 16:03 millerthegorilla

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

catb0t avatar Apr 02 '19 20:04 catb0t

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

catb0t avatar Apr 02 '19 20:04 catb0t