Elevate automatically
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- rust
- Domain
- operating-systems, security
Research direction
Start by reviewing how the project currently launches and how its existing windows crate usage handles Windows-specific behavior. Compare the privilege and xelevate crates with the self_runas implementation linked in the issue. Done means the project has an agreed approach for elevating when not started as administrator, including whether to use a dependency or implement the behavior in throttle.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Rust
- Stars
- 37
- Forks
- 5
- Avg merge
- 6h 58m
- Merged PRs (30d)
- 7
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from FrancescoCoding/Throttle
-
Difficulty 5/5 Over a week Newbie friendliness 32/100
FrancescoCoding/Throttle#9 · 4 comments ·
All issues in FrancescoCoding/Throttle
Similar issues
-
contribution
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
tree-sitter/tree-sitter#6005 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
agent:triaged bug bughunt pm:pipenv priority:p1
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
SocketDev/socket-patch#744 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
maplibre/maplibre-tile-spec#1844 ·
Maintainers usually reply within 1 day