mirror of
https://github.com/gaschz/qubes-pass.git
synced 2025-03-01 14:22:31 +01:00
qrexec-client-vm was stripping the escape chars on output.
The server was not aware of the TERM setting, so I made it explicit, based on common assumptions. For both gnome-term and Xterm, the output now matches that of the pass command.
This commit is contained in:
parent
0ee5f650e4
commit
e1aae10b77
@ -142,7 +142,10 @@ PASS_MANAGE = "ruddo.PassManage"
|
|||||||
|
|
||||||
|
|
||||||
def send_args(rpc, *args, **kwargs):
|
def send_args(rpc, *args, **kwargs):
|
||||||
cmd = ['/usr/lib/qubes/qrexec-client-vm', opts.dest_vm, rpc]
|
cmd = ['/usr/lib/qubes/qrexec-client-vm',
|
||||||
|
'--no-filter-escape-chars-stdout',
|
||||||
|
'--no-filter-escape-chars-stderr',
|
||||||
|
opts.dest_vm, rpc]
|
||||||
# print(cmd, file=sys.stderr)
|
# print(cmd, file=sys.stderr)
|
||||||
return_stdout = kwargs.get("return_stdout", False)
|
return_stdout = kwargs.get("return_stdout", False)
|
||||||
if "return_stdout" in kwargs:
|
if "return_stdout" in kwargs:
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# xterm-256color seems to be the qubes default
|
||||||
|
# for gnome-term and Xterm
|
||||||
|
#
|
||||||
|
export TERM="xterm-256color"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# xterm-256color seems to be the qubes default
|
||||||
|
# for gnome-term and Xterm
|
||||||
|
#
|
||||||
|
export TERM="xterm-256color"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user