framework-system icon indicating copy to clipboard operation
framework-system copied to clipboard

Allow running most command in windows without elevated privileges

Open kiram9 opened this issue 6 months ago • 4 comments

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.

kiram9 avatar May 14 '25 22:05 kiram9

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.

JohnAZoidberg avatar May 15 '25 03:05 JohnAZoidberg

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

JohnAZoidberg avatar May 15 '25 03:05 JohnAZoidberg

what happens if the parent process/script also has admin privileges? does it just work without bothering you?

amstan avatar May 15 '25 04:05 amstan

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.

JohnAZoidberg avatar May 15 '25 04:05 JohnAZoidberg