Repository navigation
sysmon: fix priority on merged rows and add finer presets - #4361
Conversation
Changing the priority of a merged row skipped children by the names that ending a process tree skips, which include dms, qs and quickshell. The shell's UI runs as a dms child of the dms background process, so setting the priority on that row only reached the background process. Merged children all run the row's executable anyway, so the priority change now reaches all of them. Highest set nice -20, which outranks the compositor and the shell, so a busy process picked as Highest could make the whole desktop stutter. The high side now has High (-5), Very High (-10) and Highest (-12, what compositors usually run at), plus Maximum (-19) marked with a warning icon in the priority menu and the detail strip dropdown. Low and Lowest stay as they were.
Claude reviewOne issue: the warning icon on Maximum can vanish from the detail strip priority dropdown.
Checked: Go |
DDropdown rebuilds optionIconMap from optionIcons whenever its options change, which replaced the bound map with an empty one. Pass the icons as a parallel optionIcons list instead.
Claude reviewNo issues found. The earlier finding is fixed: the detail strip dropdown now passes Checked: the Go |
For normal processes it is 20 plus the nice value shown in the row below it, and a lower number meaning more CPU time read backwards next to the new priority presets.
Claude reviewNo issues found. The new commit only drops the kernel Priority row from the detail strip CPU section. The Nice row and the priority preset chip still show the same information. Checked: the Go |
Description
Setting the priority on a merged row skipped child processes that ending a process tree skips, like dms, qs and quickshell. For Dux Shell itself only the background process got the new priority while the UI kept its old one. Now every process of the row gets it.
Also the priority presets changed: Highest set nice -20, which ranks above the compositor and the shell, so a busy process set to Highest could make the whole desktop stutter. The high side now has High (-5), Very High (-10), Highest (-12, around what compositors usually get) and Maximum (-19), which shows a warning icon. Low and Lowest stay as they were.
This also drops the priority number from the details > resources menu of processes since it mostly just repeats the nice value and can be confusing.
Type of change
Related issues
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings