1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-24 11:12:34 +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

@ -137,12 +137,17 @@ int main(int argc, char** argv)
return 1;
}
if (unveil("/bin/Profiler", "x") < 0) {
if (unveil("/bin", "r") < 0) {
perror("unveil");
return 1;
}
if (unveil("/bin/Inspector", "x") < 0) {
if (unveil("/bin/Profiler", "rx") < 0) {
perror("unveil");
return 1;
}
if (unveil("/bin/Inspector", "rx") < 0) {
perror("unveil");
return 1;
}