Skip to content

Elevate automatically #4

Description

@MCOfficer

Hey,

Just discovered this project and it's a great tool! I've been thinking about improving ergonomics here and there, so a few issues might be coming your way ;)

How do you feel about trying to elevate automatically if not started as administrator? There are some libraries that already do it:

https://lib.rs/crates/privilege
https://lib.rs/crates/xelevate

You're already using the windows crate, so the best way might be how self_runas does it:
https://github.com/rustonbsd/self_runas/blob/main/src/lib.rs

I can create a PR, just let me know if you'd prefer a crate, or reimplementing it as part of throttle.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions