.local/bin/encfsw: Set --extpass so it works in SLY.
parent
3a2d08fae1
commit
26ab1fc21c
|
@ -27,7 +27,8 @@ mount() {
|
|||
MOUNTPOINT="${SOURCE}_decrypted"
|
||||
mkdir -p "$MOUNTPOINT"
|
||||
if [ -z "$PASS" ]; then
|
||||
encfs "$SOURCE" "$MOUNTPOINT" || rmdir "$MOUNTPOINT"
|
||||
## REVIEW: Only set extpass if no PTY is connected?
|
||||
encfs --extpass=$(which lxqt-openssh-askpass 2>/dev/null) "$SOURCE" "$MOUNTPOINT" || rmdir "$MOUNTPOINT"
|
||||
else
|
||||
echo "$PASS" | encfs --stdinpass "$SOURCE" "$MOUNTPOINT" || rmdir "$MOUNTPOINT"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue