1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:28:10 +00:00

SystemMonitor: Fetch process icons from their executable

Instead of using the extremely hackish icon_id field in /proc/all,
we now retrieve process icons from their executable by using
GUI::FileIconProvider.
This commit is contained in:
Andreas Kling 2020-12-27 00:55:13 +01:00
parent 21ccbc2167
commit 2e846631a8
3 changed files with 15 additions and 13 deletions

View file

@ -118,6 +118,7 @@ private:
unsigned times_scheduled;
unsigned ticks_user;
unsigned ticks_kernel;
String executable;
String name;
String state;
String user;
@ -143,7 +144,6 @@ private:
unsigned file_read_bytes;
unsigned file_write_bytes;
float cpu_percent;
int icon_id;
};
struct Thread {