Allow to customize (lower) the priotity of the main process being spawn by each profile (cmd.exe, powershell.exe, ...) #19540

Open
opened 2026-01-31 06:46:36 +00:00 by claunia · 0 comments
Owner

Originally created by @aurelienrb on GitHub (Mar 16, 2023).

Description of the new feature/enhancement

Hello,

I do a lot of C++ project compilation in command line, and by default this tends to make my system quite slow and unresponsive because all CPUs are used to build source code.

So what I manually do each time I open a new Terminal to be used for a built is to lower its priority (from "Normal" to "Below Normal"). This way I can building code in the background while still working on something else.

image

It would be great to a have a profile setting that allows to customize / decrease the priority level of the spawned command prompt so that I don't have to manually do on each launch. 😍

Proposed technical implementation details

Add a config setting at the profile level that allows to specify the process priority as supported by Windows
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setpriorityclass

Originally created by @aurelienrb on GitHub (Mar 16, 2023). # Description of the new feature/enhancement Hello, I do a lot of C++ project compilation in command line, and by default this tends to make my system quite slow and unresponsive because all CPUs are used to build source code. So what I manually do each time I open a new Terminal to be used for a built is to lower its priority (from "Normal" to "Below Normal"). This way I can building code in the background while still working on something else. ![image](https://user-images.githubusercontent.com/8517069/225698590-1ce113ce-eb4f-45d1-9fb8-90cfbfd5d92b.png) It would be great to a have a profile setting that allows to customize / decrease the priority level of the spawned command prompt so that I don't have to manually do on each launch. 😍 # Proposed technical implementation details Add a config setting at the profile level that allows to specify the process priority as supported by Windows https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setpriorityclass
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19540