From 2e8e479653ec1a9de00dd65bb2cfa123a6c38f88 Mon Sep 17 00:00:00 2001 From: "Manuel Amador (Rudd-O)" Date: Mon, 20 Apr 2020 12:04:48 +0000 Subject: [PATCH] Tag 0.0.21. --- bin/qvm-pass | 12 ++++++++++++ qubes-pass.spec | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/bin/qvm-pass b/bin/qvm-pass index bab64e4..a7fa35f 100755 --- a/bin/qvm-pass +++ b/bin/qvm-pass @@ -197,6 +197,18 @@ if not any(x in sys.argv[1:] for x in ['--help', '-h', '-?']): opts = parser_for_subcommands.parse_args() args = None +if not opts.dest_vm: + try: + with open("/rw/config/pass-split-domain") as domain: + opts.dest_vm = domain.readlines()[0].strip() + except FileNotFoundError: + pass + if not opts.dest_vm: + usage("error: the QUBES_PASS_DOMAIN variable is not defined." + " Either create /rw/config/pass-split-domain with the VM containing" + " your pass setup, set the environment variable yourself," + " or pass -d on the command line.",) + if opts.subcommand == "get-or-list": if opts.key: sys.exit(pass_read("get", opts.key)) diff --git a/qubes-pass.spec b/qubes-pass.spec index 432ba27..ccca953 100644 --- a/qubes-pass.spec +++ b/qubes-pass.spec @@ -3,7 +3,7 @@ %define mybuildnumber %{?build_number}%{?!build_number:1} Name: qubes-pass -Version: 0.0.20 +Version: 0.0.21 Release: %{mybuildnumber}%{?dist} Summary: Inter-VM pass password management for Qubes OS AppVMs and StandaloneVMs BuildArch: noarch