This commit is contained in:
2025-08-10 20:57:06 -07:00
parent ddec7ebe50
commit f3f8022aa3
2 changed files with 4 additions and 9 deletions
+2 -7
View File
@@ -199,13 +199,8 @@ defmodule Systant.CommandExecutor do
# Get current environment
env = System.get_env()
# Ensure we have a proper PATH that includes system binaries
system_path = "/run/current-system/sw/bin:/usr/local/bin:/usr/bin:/bin"
current_path = Map.get(env, "PATH", "")
full_path = if current_path == "", do: system_path, else: "#{current_path}:#{system_path}"
# Start with enhanced environment
enhanced_env = Map.put(env, "PATH", full_path)
# Start with current environment
enhanced_env = env
# If running as root, add Wayland session environment for user commands
if System.get_env("USER") == "root" do