Skip to content

Power plans not detected when windows language set to other than English #58

Description

@Nathan-Wrpt

Version

1.7.4

Windows Version

Windows 11

Reproduction Steps

  • set your windows language to French.
  • Restart Threadpilot.
  • Go to the power plans tab
  • refresh plans

Expected Behavior

The power plans, at least the windows default ones should be displayed.

Actual Behavior

No plans are showed at all.

Logs and Diagnostics

It is most probably due to the command powercfg /list that returns results in the language that windows is set on.
For example, when executing powercfg /list on a French Windows, it returns:

 Modes de gestion de l’alimentation existants (* Actif)
-----------------------------------
GUID du mode de gestion de l’alimentation : 381b4222-f694-41f0-9685-ff5bb260df2e  (Utilisation normale)
GUID du mode de gestion de l’alimentation : 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c  (Haute performance) *

but on English Windows:

 C:\Users\nwurp>powercfg /list

Existing Power Schemes (* Active)
-----------------------------------
Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e  (Balanced)
Power Scheme GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c  (High performance) *

Activity

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions