Skip to content

Pass keeps copying its entire tree into my xclipboard (Mailsync/pass bug on eval line) #1025

@bashrj

Description

@bashrj

Issue: Pass keeps copying my ENTIRE pass tree into the clipbaord when mailsync runs (every 5 minutes)

I was importing some dotfiles from an external drive, and decided to clean up my pass tree

I imported the messy ~/.local/bin/password-store onto my machine as ~/.local/bin/password-store-bak so that I can run PASSWORD_STORE_DIR=<new-or-old-path> pass to get passwords selectively from either pass store (the new clean one, or the old, messy imported one)

It's probably NOT an issue with mailsync itself (or if it is, might not be worth revising)

Line 21 (eval command) ends up evaluating the following

export XDG_DATA_HOME="$HOME/.local/share"
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
export MBSYNCRC="$XDG_CONFIG_HOME/mbsync/config"
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch-config"
  PASSWORD_STORE_DIR="${XDG_DATA_HOME}/password-store-bak" pass "$1" | xclip -sel clipboard

PASSWORD_STORE_DIR is exported twice despite already setting PASSWORD_STORE_DIR to the desired default password store in .zprofile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions