From bc676bbf98a3a12e74ceccbbd1521e137e3eb3bc Mon Sep 17 00:00:00 2001 From: Alessandro Astone Date: Wed, 1 Apr 2026 16:28:06 +0200 Subject: [PATCH] Fix listing processes from other users If we're unable to read /proc/$pid/environ we would return early without parsing this process. Reading environ is only used to detect appimaged AppImage's and it should not be considered a fatal error. Fixes: 37290553 ("Support for AppImages managed by appimaged") Closes: https://github.com/nokyan/resources/issues/642 --- lib/process_data/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/process_data/src/lib.rs b/lib/process_data/src/lib.rs index db9522a6..e9795c6a 100644 --- a/lib/process_data/src/lib.rs +++ b/lib/process_data/src/lib.rs @@ -451,7 +451,8 @@ impl ProcessData { trace!("Launcher of {pid} determined to be {launcher}"); trace!("Cgroup of {pid} determined to be {cgroup:?}"); - let environ = read_parsed::(proc_path.join("environ"))? + let environ = read_parsed::(proc_path.join("environ")) + .unwrap_or_default() .split('\0') .filter_map(|e| e.split_once('=')) .map(|(x, y)| (x.to_string(), y.to_string()))