unset GREP_OPTIONS
+# For lib/open.cc:_load_key_file
+unset XDG_CONFIG_HOME
+
# For emacsclient
unset ALTERNATE_EDITOR
base_name="$1"
shift
shim_file="${base_name}.so"
- LD_PRELOAD=./${shim_file}${LD_PRELOAD:+:$LD_PRELOAD} notmuch-shared "$@"
+ LD_PRELOAD=${LD_PRELOAD:+:$LD_PRELOAD}:./${shim_file} notmuch-shared "$@"
}
# Creates a script that counts how much time it is executed and calls