Skip to content

Search filters for package elevation requirements #1898

Description

Description of the new feature/enhancement

I would like a setting to specify I want packages that run in "user" mode. My account doesn't have administrator rights on the machine. I don't want to have them show up in search results by default if I have enabled that setting.

"searchFilters": {
  "elevationRequirement": {
    "elevationRequired": "exclude"
    "elevationProhibited": "include"
    "elevatesSelf": "exclude"
  }
}

The default behavior is to include.


I would also like the ability to filter search results by packages that require or prohibit administrator mode. That way I can still search across all packages to be informed of what is available that I may not be able to install as a user or an administrator.

winget search <query> --elevationRequired - includes "elevatesSelf"
winget search <query> --elevationProhibited

Proposed technical implementation details (optional)

No response

Activity

  1. added
    Issue-Feature
    on Feb 3, 2022
  2. ghost added
    Needs-Triage
    on Feb 3, 2022
  3. removed
    Needs-Triage
    on Feb 3, 2022
  4. ghost added
    Needs-Triage
    on Feb 3, 2022
  5. removed
    Needs-Triage
    on Feb 3, 2022
  6. changed the title [-][New Feature]: Search filters for package elevation requirements[/-] [+]Search filters for package elevation requirements[/+] on Feb 3, 2022
  7. added
    Area-Settings
    on Feb 16, 2022
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

    Area-SettingsIssue-Feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions