Skip to content

ProcessInfoHeader: use icons for state - #573

Draft
danirabbit wants to merge 2 commits into
mainfrom
danirabbit/state-icons
Draft

danirabbit wants to merge 2 commits into
mainfrom
danirabbit/state-icons

Conversation

@danirabbit

Copy link
Copy Markdown
Member
Screenshot from 2026-09-17 14 50 10 Screenshot from 2026-09-17 14 50 17

Todo:

  • make the states something meaningful like sleep instead of Z
  • Create icon name programmatically from state?

@stsdc

stsdc commented Sep 24, 2026

Copy link
Copy Markdown
Member

Would we be able to create an icon for every state?
Because I'm pro letter.

    private string set_state_tooltip (string state) {
        switch (state) {
        case "D":
            return _("The app is waiting in an uninterruptible disk sleep");
        case "I":
            return _("Idle kernel thread");
        case "R":
            return _("The process is running or runnable (on run queue)");
        case "S":
            return _("The process is in an interruptible sleep; waiting for an event to complete");
        case "T":
            return _("The process is stopped by a job control signal");
        case "t":
            return _("The process is stopped by a debugger during the tracing");
        case "Z":
            return _("The app is terminated but not reaped by its parent");
        default:
            return "";
        }
    }

@danirabbit

Copy link
Copy Markdown
Member Author

@stsdc personally I don't find the letters particularly meaningful and especially since they're not localized. I think this is exactly the job for an icon

@stsdc

stsdc commented Sep 24, 2026

Copy link
Copy Markdown
Member

If it would be possible to preserve granularity of the state, then I'm ok with that.

@danirabbit

Copy link
Copy Markdown
Member Author

Yes absolutely!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants