Giter VIP home page Giter VIP logo

powertoysrunpluginwinget's Introduction

Winget Plugin for PowerToys Run

This is a plugin for PowerToys Run that allows you to search and install packages from the Winget package manager.

image

Features

  • Search for packages from the Winget repository
  • Install packages directly from PowerToys Run
  • View package details and version information

Installation

Use the installation script release.ps1:

.\release.ps1

Then restart PowerToys

Or manually:

  1. Download the latest release of the Winget Plugin from the releases page.
  2. Extract the zip file's contents to your PowerToys modules directory (usually %LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Plugins).
  3. Restart PowerToys.

Usage

  1. Open PowerToys Run (default shortcut is Alt+Space).
  2. Type winget followed by your search query.
  3. Select a package from the search results and press Enter to install it.

Build

  1. Clone the PowerToys repo.
  2. cd into the PowerToys directory.
  3. Initialize the submodules: git submodule update --init --recursive
  4. Clone this repo into the PowerToys/src/modules/launcher/Plugins directory. (git clone https://github.com/bostrot/PowerToysRunPluginWinget PowerToys/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.Winget)
  5. Open the PowerToys.sln solution in Visual Studio.
  6. Add this project to the PowerToys.sln solution. (Right-click on the PowerToys solution in the Solution Explorer (under the path PowerToys/src/modules/launcher/Plugins) and select Add > Existing Project... and select the Community.PowerToys.Run.Plugin.Winget.csproj file.)
  7. Build the solution.
  8. Run the PowerToys project.

Contributing

Contributions are welcome! Please see our contributing guidelines for more information.

License

This project is licensed under the MIT License.

Create your own PowerToys Run Plugin

I wrote an article about that in my blog which might help you to get started: How to create a PowerToys Run plugin

powertoysrunpluginwinget's People

Contributors

bostrot avatar capi1o avatar davidegiacometti avatar hlaueriksson avatar kogsey avatar sirenglitch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

powertoysrunpluginwinget's Issues

Search Result Ordering Issue

Description

When using the Winget plugin to search for the Winget package 'bat' by sharkdp, the result appears towards the bottom of the list. This happens because there are many packages with names containing 'bat', such as Adobe Acrobat or authors name have bat in it, causing the desired package to be listed way further down, making it hard to find.

  • Expected Behavior: The package 'bat' by sharkdp should appear at or near the top of the search results.

  • Actual Behavior: The package 'bat' by sharkdp appears near the bottom of the search results.

  • Steps to Reproduce:

    1. Open PowerToys Run.
    2. Activate the Winget plugin.
    3. Search for the package bat
    4. Observe the position of 'bat' in the search results.
  • Environment:

    • Operating System: Windows 11
    • PowerToys Version: v0.82.0
    • Winget Plugin Version: v1.3.0

Screenshots or Logs

image

Failed to load plugin: winget

ErrorMessage
Hi,
This issue was mentioned a few times and i really tried to make it work.
But the error accours everytime, i tried putting the plugin at the location you mentioned in the Readme and also the location that is mentioned here PowerToysDoc
I also tried installing PowerToys in all possible ways (winget, msstore, .exe from Github)
I think this is a really handy plugin and would really like it to work.
I also attached my log if that helps. 2024-01-05.txt

Any suggestions?

Thank you in advance!

Paul

Incorrect / missing search results?

The search results from the plugin seems to be missing a quite a bit of stuff when compared to the cli.

No firefox stable, only nightly
Screenshot 2024-06-12 213604
Screenshot 2024-06-12 213548

No discord stable, only Public Test Builds.
Screenshot 2024-06-12 213845
Screenshot 2024-06-12 213827

Typing in the ID e.g. "mozilla.firefox", also doesn't show anything

Fail to initialize plugins error

Install and restart the PC, it shows Fail to initialize plugins.

I try to uninstall all plugins, noting, will install Winget plugin only, it shows.

PowerToys 0.79 WingetPlugin 1.2.3

BTW: Is there any plan about uninstall command by PowerToyRun?

winget upgrade --all ?

It would be great to be able to launch an update of all the apps from the run bar :
"winget upgrade --all"

Can't run PowerToys Run after installation

I've downloaded the latest version 1.2.0, extracted and the folder copied to C:\Program Files\PowerToys\modules\launcher\Plugins.
Restarted PowerToys and I can't open the PowerRun functionality.
When I deleted the folder, restarted PowerToys, PowerRun still didn't work. I needed to disable it and enable it.
When I extracted this plugin again, restarted PowerToys, tried to disable and enable PowerRun, it still didn't work (windows didn't appear).
I've got custom shortcut to ALT+F2. Not sure if that's the problem.

Files in the release zip archive

Some files in the release zip archive, Winget.zip v1.1.0, is missing or unnecessary.

Missing:

  • Images\Winget.dark.png
  • Images\Winget.light.png

Unnecessary:

  • PowerToys.Settings.UI.Lib.dll
  • PowerToys.Settings.UI.Lib.pdb
  • PowerToys.Interop.dll
  • PowerToys.Interop.pdb
  • PowerToys.Common.UI.dll
  • PowerToys.Common.UI.pdb
  • PowerToys.ManagedCommon.dll
  • PowerToys.ManagedCommon.pdb
  • PowerToys.ManagedTelemetry.dll
  • PowerToys.ManagedTelemetry.pdb
  • Ijwhost.dll
  • backup_restore_settings.json

Issue Adding Plugin to `PowerToys` Installed via Microsoft Store

I recently installed the PowerToys app from the Microsoft Store. However, upon attempting to add a plugin to the app's directory (C:\Users\%username%\AppData\Local\Microsoft\PowerToys\PowerToys Run\Plugins), I encountered the following error:

Error Image

The plugin functions correctly with the installer version but encounters issues when used with the Microsoft Store app.

Could you provide guidance or a workaround to enable the plugin's functionality with the Microsoft Store version of PowerToys?

Show the correct state of application installations

When installing/uninstalling applications via the plugin, PowerToys needs to be restarted to reflect the correct state of the machine.

I'll guess that the result from winget is cached.

Repro:

  1. Install Azure Developer CLI via the plugin
  2. Search for azd
    • It does not look like Azure Developer CLI is installed

winget1

  1. Restart PowerToys
  2. Search for azd
    • Now Azure Developer CLI is installed

winget2

Installation instructions

Instructions for installation states the path C:\Program Files\PowerToys\modules\launcher\Plugins but it's for the system install.

By default powertoys installs as a user and the path is $ENV:LOCALAPPDATA\PowerToys\modules\launcher\Plugins.

Fail to initialize plugins dialog after performing manual installation

When extracting the contents of winget-powertoys-1.3.0.zip to "%LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Plugins" (not %LOCALAPPDATA%\Microsoft\PowerToys\RunPlugins as the README states) and restarting PowerToys, I get the following error message.

image

"%LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Plugins" appears to be the correct path for PowerToys Run plugins, as all the other plugins I've installed there work fine. Is there something I'm doing wrong? I can't quite fathom how "release.ps1" installs PowerToysRunPluginWinget. It appears to be intended to package PowerToysRunPluginWinget into a zip file after it's been built. Or at least that's what it seems like to me. I can't recall the last time I used 7-Zip's command line tool, if ever. But even when testing the "release.ps1", changing the various paths to match how I expect it might work, results in nothing happening (no files are extracted or compacted). This may be down to my not quite understanding the behavior of the overwrite mode or other the other switches for 7z.exe.

Anyway, I can't seem to install PowerToysRunPluginWinget and I don't know why. I'd appreciate some guidance, thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.