microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.23k stars 6.54k forks source link

PowerToys Run: UI feedback for service plugin #30574

Open kevingosse opened 10 months ago

kevingosse commented 10 months ago

Description of the new feature / enhancement

When trying to use the PowerToys Run Service plugin to restart a service which has dependencies, it fails silently. This is made worse by the lack of visual feedback, there is no way to know that the restart actually failed.

It would be nice to have a small UI showing the progress of the start/stop/restart command, and it could serve as a base to later handle services with dependencies.

Scenario when this would be used?

Whenever trying to use Powertoys Run to manage services.

Supporting information

No response

htcfreek commented 10 months ago

xref: #9531 xref: #9938 xref: #15272

GhostVaibhav commented 4 months ago

Hi @htcfreek, I think the following file attached in the reference should be changed for this issue to the one below. What do you think?

image

References -

  1. https://github.com/microsoft/PowerToys/blob/main/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Service/Helpers/ServiceHelper.cs#L108
  2. https://superuser.com/questions/301765/restart-a-windows-service-from-the-command-line (A question referencing the issue)