From bf2f9725aac922f9435833625665ea19e3039bb8 Mon Sep 17 00:00:00 2001 From: rjl6789 Date: Mon, 8 Jun 2020 11:35:02 +0100 Subject: [PATCH] remove assumption of pass directory location removes the assumption that if you have a directory: "$HOME/.local/share/password-store" then this should be the PASSWORD_STORE_DIR. If this directory exists - then who is to say you want to use it for the password store? - the user should prefix any call to mailsync with the correct PASSWORD_STORE_DIR (or export it in shell / wrapper script) --- bin/mailsync | 3 --- 1 file changed, 3 deletions(-) diff --git a/bin/mailsync b/bin/mailsync index a90c6c9..8733e69 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -15,9 +15,6 @@ command -v notify-send >/dev/null || echo "Note that \`libnotify\` or \`libnotif export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus export DISPLAY=:0.0 -# For individual configurations: -[ -d "$HOME/.local/share/password-store" ] && export PASSWORD_STORE_DIR="$HOME/.local/share/password-store" - # Settings are different for MacOS (Darwin) systems. if [ "$(uname)" = "Darwin" ]; then notify() { osascript -e "display notification \"$2 in $1\" with title \"You've got Mail\" subtitle \"Account: $account\"" && sleep 2 ;}