Skip to content

How to let QtPass use the real "pass" on windows #458

Description

@christian-weiss

I have setup "git bash" on my windows machine and i am using my "pass" within git bash.

Instead of using the "pass imitation" (see https://github.com/IJHack/QtPass/blob/master/src/pass.cpp#L13) i want to let QtPass to use the real pass command line tool.

First i thought a windows .bat file as a wrapper could be a quick workaround:

set drive=%CD:~0,1%
IF NOT EXIST %LOCALAPPDATA%\Programs\Git\bin\bash.exe (
    echo %LOCALAPPDATA%\Programs\Git\bin\bash.exe is missing. Please install git bash by installing git for windows. https://git-scm.com/download/win
	exit /B 1
)
%LOCALAPPDATA%\Programs\Git\bin\bash.exe -c "export PASSWORD_STORE_DIR=/%drive%/%subpath%; pass '%1' '%2' '%3' '%4' '%5' '%6' '%7' '%8' '%9'"

but then i realized that pass is using interactive mode for pass insert which do not work that way.

Would be nice if you would add support for "git bash" on windows (to point QtPass to /usr/bin/pass).

That way it would be possible to use a maybe newer version, an older version or a custom patched version of pass.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions