Browse Source

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)
pull/453/head
rjl6789 4 years ago
parent
commit
bf2f9725aa
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      bin/mailsync

+ 0
- 3
bin/mailsync View File

@@ -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 ;}


Loading…
Cancel
Save