summaryrefslogtreecommitdiff
path: root/src/platform (follow)
Commit message (Collapse)AuthorAgeFilesLines
* platform/darwin: don't invoke brew for the default prefixFilippo Valsorda2020-04-191-1/+1
| | | | | | | | "brew --prefix gnu-getopt" takes 2.125s on my very default setup (I don't even want to know why), dominating the pass wall time. If the default brew prefix is in use, just detect the getopt binary with a cheap "test -x" instead.
* platform/darwin: drop using "display" to show QR codesFilippo Valsorda2020-04-191-4/+0
| | | | | | | | This doesn't detect if XQuartz is installed and running, so it's broken in most setups, the experience is poor regardless, since it's not displayed inline in the terminal, but leaves a window that requires closing, and anyway the the utf8 mode works perfectly on both iTerm2 and Terminal.app.
* show: do not store binary data in bash varsJason A. Donenfeld2018-08-014-8/+11
| | | | Instead we're forced to base64 it, like we do with the clipboard.
* Close stdout for background task that restores clipboardAllan Odgaard2018-06-142-2/+2
| | | | | | | While we do not expect any output on stdout from the background task, keeping the file handle open means that anyone calling `pass` and waiting for stdout to be closed, will have to wait (by default) for 45 seconds.
* show,generate: support qrcodesJason A. Donenfeld2017-01-011-0/+12
|
* Add openbsd platform file from David DahlbergJason A. Donenfeld2015-05-111-0/+40
|
* enhance winpath detection: gpg --help will have a line like this: Home: C:\.....Lorenz Weber2015-05-111-1/+1
|
* critcal fix for cygwin: gpg output to stdout ("gpg -o -") would have been ↵Lenz Weber2015-05-111-1/+1
| | | | putput to a file named "-"
* Bad code is bad.Jason A. Donenfeld2015-01-281-3/+3
|
* cygwin + gpg4win: convert paths to windows paths when calling gpg4win binary ↵Lenz Weber2015-01-281-0/+25
| | | | instead of cygwin's gpg binary
* darwin: Fix up order of operations.Jason A. Donenfeld2014-12-231-1/+1
|
* platform: find getopt in alternate osx locationsJamie Couture2014-09-211-1/+1
| | | | | | | | | | | | Some users may use MacPorts instead of Homebrew. If brew fails to return a prefix for getopt, check if the user has 'port' installed and use the MacPort ${prefix} /opt/local. Avoids an issue where pass terminates because getopt cannot be resolved in the assumed location /usr/local/bin. Provide support to resolve absolute path of getopt from a MacPorts installation. Signed-off-by: Jamie Couture <jamie.couture@gmail.com>
* clip: use CLIP_TIME in messagesJason A. Donenfeld2014-07-241-1/+1
|
* darwin: allow for gnu mktemp in pathJason A. Donenfeld2014-06-301-1/+1
|
* darwin: fix mktemp argument orderJason A. Donenfeld2014-06-291-1/+1
|
* darwin: properly ejects ramdisksJason A. Donenfeld2014-06-291-10/+10
| | | | | | | In the move away from extensive global variables and improved cleanup routines, we forgot to fix the darwin platform file, which means temporary ramdisks never got unmounted. This patch cleans up the general cleanup trap logic routines.
* Turns out aliases were a bad idea.Jason A. Donenfeld2014-04-242-4/+4
|
* Use aliases instead of variables for command portability.Jason A. Donenfeld2014-04-232-4/+4
|
* platform: add cygwin supportJason A. Donenfeld2014-04-171-0/+16
| | | | | | | | | According to Brandon Jones, all we need to do is adjust /dev/clipboard from xclip. So we add a platform specific file to do so. http://www.relaytheurgency.com/2014/04/pass-in-cygwin-relatively-simple.html Suggested-by: Brandon Jones <jones.brandon.lee@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Apparantly we can't get a secure tmpdir on freebsd.Jason A. Donenfeld2014-04-161-14/+0
|
* All globals are upper-case.Jason A. Donenfeld2014-04-152-8/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Reorganize entire programJason A. Donenfeld2014-04-152-5/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Fix path to /dev/nullPeter Haza2014-04-051-1/+1
|
* clip: wait longer for slow systemsJason A. Donenfeld2014-03-231-1/+1
|
* clip: suppress kill errorJason A. Donenfeld2014-03-221-2/+2
|
* clip: do not race on osxJason A. Donenfeld2014-03-221-5/+5
|
* Shred shm files.Jason A. Donenfeld2014-03-182-0/+2
|
* Explicitly use gpg2 rather than relying on symlink.Jason A. Donenfeld2012-09-302-2/+0
|
* Fix style.Jason A. Donenfeld2012-09-231-11/+9
|
* Add FreeBSD platform fileJonathan Chu2012-09-231-0/+21
| | | | | Redefine GNUPG and GETOPT for port paths Redefine tmpdir() for a different ramdisk path
* Normalize copyright headers.Jason A. Donenfeld2012-09-221-0/+3
|
* Quote the template.Jason A. Donenfeld2012-09-181-1/+1
|
* Abstract potentially platform specific commands into their own commands.Jason A. Donenfeld2012-09-171-0/+32