This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository evisum.
View the commit online.
commit 51c32160ff9c9069c017e3337cdcdc0e7bb3f374
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
AuthorDate: Fri Sep 6 14:23:31 2024 +0100
process icon - get pared process icon if process icon not found
this makes more sense i guess to assign parent pid icon...
---
src/bin/ui/ui_util.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/bin/ui/ui_util.c b/src/bin/ui/ui_util.c
index ba626d5..cb9e39c 100644
--- a/src/bin/ui/ui_util.c
+++ b/src/bin/ui/ui_util.c
@@ -195,7 +195,13 @@ evisum_icon_cache_find(Eina_Hash *icon_cache, const Proc_Info *proc)
e = efreet_util_desktop_exec_find(cmd);
if (!e)
- return "application";
+ {
+ Proc_Info *pproc = proc_info_by_pid(proc->ppid);
+
+ printf("pid %i ppdi %i pproc %p\n", proc->pid, proc->ppid, pproc);
+ if (!pproc) return "application";
+ return evisum_icon_cache_find(icon_cache, pproc);
+ }
if (e->icon)
name = e->icon;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.