You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
445 B
11 lines
445 B
#!/bin/bash -e
|
|
set -e
|
|
# Very important for stability and deterministic behaviour:
|
|
# keep this exactly in sync with Enigmail's gpgAgent.jsm:resolveGpgPath()
|
|
while read _ D ; do
|
|
D=${D%\"\)\;} ; D=${D#\"} ; D=${D%/*}
|
|
[[ ! -d "$D" ]] || PATH="$D:$PATH"
|
|
done < <(PATH=/usr/bin:/bin:/usr/sbin:/sbin grep -E "^user_pref\(\"extensions.enigmail.agentPath\"" ../../../prefs.js || : )
|
|
export PATH="$PATH:/usr/bin:/usr/local/bin"
|
|
exec "$0"-bin "$@"
|