framework-system
framework-system copied to clipboard
Allow running most command in windows without elevated privileges
Running framework tool in windows from the command line will always result in a prompt for "Do you want to allow this app to make changes to your device?" Unless you run it as admin. For things like setting RGB LEDs this makes it challenging to run this in a script.
Repro steps: Open cmd as user. run framework_tool.exe
Will always get UAC prompt.
There's no way around it from the application side.
We could make the driver expose a second interface that allows safe host commands only and is accessible without root.
It used to be that it would just show an error if you didn't have privileges, but to make it easier I made the app request admin privileges if it doesn't have them: https://github.com/FrameworkComputer/framework-system/pull/132/commits/7336362ac1b22f945226168ad903c83bee279b82
what happens if the parent process/script also has admin privileges? does it just work without bothering you?
what happens if the parent process/script also has admin privileges? does it just work without bothering you?
Exactly! If you run it in an admin terminal, it'll not bother you.