feat: improve electron sandbox path search by using name instead of path
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 14s
Nix Format Check / check-format (push) Successful in 45s
Python Lint Check / check-python (push) Failing after 9s

This commit is contained in:
Menno van Leeuwen 2025-04-01 20:10:40 +02:00
parent 4f80baa3de
commit 8dc9f9f474
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -9,7 +9,7 @@ echo ""
# Find all electron sandbox paths
echo "Finding Electron chrome-sandbox instances..."
SANDBOX_PATHS=$(find /nix/store -path "*/electron/chrome-sandbox" -type f -executable 2>/dev/null)
SANDBOX_PATHS=$(find /nix/store -name chrome-sandbox -type f -executable 2>/dev/null)
if [ -n "$SANDBOX_PATHS" ]; then
count=$(echo "$SANDBOX_PATHS" | wc -l)