Skip to content

Implement column type "Short user name"#2948

Open
YeDemirkiran wants to merge 10 commits into
winsiderss:masterfrom
YeDemirkiran:short-user-name
Open

Implement column type "Short user name"#2948
YeDemirkiran wants to merge 10 commits into
winsiderss:masterfrom
YeDemirkiran:short-user-name

Conversation

@YeDemirkiran

Copy link
Copy Markdown

This PR implements the feature requested at #2845

Description

This PR introduces a new process tree column called "Short user name" that strips out local or machine domain prefixes (e.g., "NT AUTHORITY"), making the process list cleaner.

Implementation

  • Added PHPRTLC_SHORT_USERNAME enum (and its sort functions) and ShortUsername column type
  • Find the address of last backslash inside UserName, create a new string from it and pass it to ShortUsername
  • Use the variable inside the TreeNewGetCellText case in the PhpProcessTreeNewCallback function

Screenshots

image image

Closes #2845

@YeDemirkiran YeDemirkiran requested review from dmex and jxy-s as code owners June 22, 2026 18:57
@github-actions

This comment was marked as off-topic.

@YeDemirkiran

This comment was marked as off-topic.

Comment thread SystemInformer/proctree.c
Comment thread SystemInformer/proctree.c
Comment thread SystemInformer/proctree.c Outdated
@dmex dmex self-assigned this Jun 23, 2026
@dmex dmex added the enhancement New feature or request label Jun 23, 2026
@dmex dmex requested a review from Copilot June 23, 2026 08:48

This comment was marked as outdated.

- Move ShortUsername from PH_PROCESS_ITEM to PH_PROCESS_NODE

- Add the PHPN_SHORTUSERNAME flag and PhpUpdateProcessNodeShortUsername function to update the short username text properly

- Call the new update function from the sort function and render function
@YeDemirkiran YeDemirkiran requested a review from dmex June 23, 2026 12:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread SystemInformer/proctree.c
Comment thread SystemInformer/proctree.c
Comment thread SystemInformer/proctree.c
@YeDemirkiran YeDemirkiran requested a review from dmex June 25, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hide "uninteresting" domain names in UI

3 participants