microsoft / microsoft/PowerToys
Hosts File Editor: Don’t show the “program isn't running as administrator” notification if the user has permission to the hosts file.
- Dominant language
- C
- Stars
- 139k
- Forks
- 8.6k
- PR merge metrics
- PR metrics pending
Description
### Description of the new feature / enhancement
I do not have administrator rights on my user but I do have write rights to the hosts file. Even when having permissions to the hosts file, the notification telling me that the program isn't running as an administrator is showing up.
I think this requirement could be lowered. So it would not check if a user has administrator privileges, but just check if the user has rights to the hosts file.
### Scenario when this would be used?
When editing the hosts file in the PowerToys Hosts File Editor.
### Supporting information
_No response_
Contributor guide
Research direction
Start in the Hosts File Editor implementation and trace the check that triggers the administrator notification. Verify the behavior for a user with write permission to the hosts file but without administrator rights, then confirm the notification appears only when the required file permission is missing.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100