Fix 29 audit findings across all severity tiers
This commit is contained in:
@@ -307,11 +307,9 @@ pub fn detect_desktop_environment() -> String {
|
||||
/// Result of analyzing a running process for Wayland usage.
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct RuntimeAnalysis {
|
||||
#[allow(dead_code)]
|
||||
pub pid: u32,
|
||||
pub has_wayland_socket: bool,
|
||||
pub has_x11_connection: bool,
|
||||
#[allow(dead_code)]
|
||||
pub env_vars: Vec<(String, String)>,
|
||||
}
|
||||
|
||||
@@ -391,7 +389,6 @@ pub fn analyze_running_process(pid: u32) -> Result<RuntimeAnalysis, String> {
|
||||
has_wayland_socket = env_vars.iter().any(|(k, v)| {
|
||||
(k == "GDK_BACKEND" && v.contains("wayland"))
|
||||
|| (k == "QT_QPA_PLATFORM" && v.contains("wayland"))
|
||||
|| (k == "WAYLAND_DISPLAY" && !v.is_empty())
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user