瀏覽代碼

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 年之前
父節點
當前提交
bf2f9725aa
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. +0
    -3
      bin/mailsync

+ 0
- 3
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 ;}


Loading…
取消
儲存