Skip to content

Commit

Permalink
qvm-copy-to-vm: disable wait for GUI session
Browse files Browse the repository at this point in the history
This can cause the copy to hang for no good reason.  Also
unconditionally filter escape characters in stderr.

Fixes: QubesOS/qubes-issues#8239.
(cherry picked from commit b33b09a)
  • Loading branch information
DemiMarie authored and marmarek committed Jul 24, 2023
1 parent 398db51 commit 3ac9b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file-copy-vm/qvm-copy-to-vm
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ mkfifo -- "$RESPONSE"

# can't use $@ with --localcmd, and $* would fail on whitespace
/usr/lib/qubes/qfile-dom0-agent "$@" <"$RESPONSE" |
qvm-run --pass-io --service -- "$VM" "qubes.Filecopy" >"$RESPONSE"
qvm-run --no-gui --filter-escape-chars-stderr --pass-io --service -- "$VM" "qubes.Filecopy" >"$RESPONSE"

if [ "${0##*/}" = "qvm-move-to-vm" ]; then
rm -rf -- "$@"
Expand Down

0 comments on commit 3ac9b13

Please sign in to comment.