When i try to launch a program using electron i have
usr/bin/electron: ligne 20: /usr/lib/@ELECTRON@/electron: Aucun fichier ou dossier de ce type
line 20 is
exec /usr/lib/${name}/electron "${flags[@]}" "$@"
/usr/bin/electron
#!/usr/bin/bash
set -euo pipefail
name=@ELECTRON@
flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/${name}-flags.conf"
declare -a flags
if [[ -f "${flags_file}" ]]; then
mapfile -t < "${flags_file}"
fi
for line in "${MAPFILE[@]}"; do
if [[ ! "${line}" =~ ^[[:space:]]*#.* ]] && [[ -n "${line}" ]]; then
flags+=("${line}")
fi
done
exec /usr/lib/${name}/electron "${flags[@]}" "$@"
Usually an app using election will pull the required dependency.
Perhaps the app is made for another distribution e.g. Ubuntu - in such case you will need to figure out which version (at least 25 possible versions) and install it using pacman.
So I suggest remove the app and reinstall it.
If it is something you setup manually you should contact the developer.
Because the software is semi legal from AUR… It was compiled with electron 25 only. After today’s electron update, no problem. The culprit was not my mysterious software.