test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user